On Sat, Apr 10, 2021 at 07:22:14AM -0400, Mouse wrote: > >>> 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.
You're right. Read-only is enough. -- Thierry Laronde <tlaronde +AT+ polynum +dot+ com> http://www.kergis.com/ http://kertex.kergis.com/ http://www.sbfa.fr/ Key fingerprint = 0FF7 E906 FBAF FE95 FD89 250D 52B1 AE95 6006 F40C