Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: detect pipe



On 2021-01-30 11:19 a.m., Ray Andrews wrote:
On 2021-01-30 11:00 a.m., Bart Schaefer wrote:
ubuntu% ls /dev/fd/0
/dev/fd/0
ubuntu% ls /dev/fd/0 <&-
ls: cannot access '/dev/fd/0': No such file or directory

What would be the practical use of that?
Because it keeps 'tabs' from being fed arguments that it doesn't want, and zsh is then smart enough to sent those args on to the next  command :-)






Messages sorted by: Reverse Date, Date, Thread, Author