Mailing List Archive


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

Re: [tlug] bash and grep and diff



Attila Kinali writes:

 > Please note that <() is a bashism and doesnt necessarily work on
 > other shells.

It's an advanced-shell-ism.  It works in zsh (I think it originated
there).  It won't work in (d)ash etc. and may not work in advanced
shells when they are invoked as sh.

Note that in zsh it always works, up to the inherent limitations of
open fds and pipes; if /dev/fd isn't available, it will use a named
pipe, and if named pipes aren't available, a temporary file will be
used.  Use of a temporary file (if you suspect the called program
wants to seek) can be forced with the "=(seeker)" form.  (Of course
that's what the OP wants to avoid, but occasionally it can be useful.)

Just one reason why zsh is preferred by 9 out of 10 net-gods.


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links