tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Possible "new" redirect style for /bin/sh (needs a name)



>>> 	exec {var}>pathname
>> [...]
> 2) A "named fd" var once set is neither writable nor directly
> readable by the script; it is read-only except it is only "readable"
> by the implementation;

I don't like this; it makes it impossible to do things like put the fd
number on the command line of a program.  Instead of

	program -fd ${var}

you'd have to do something like

	program -fd 3 3>&${var}

which, to me, defeats much (though admittedly not all) of the point.

/~\ The ASCII				  Mouse
\ / Ribbon Campaign
 X  Against HTML		mouse%rodents-montreal.org@localhost
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B


Home | Main Index | Thread Index | Old Index