Subject: Re: cat(1) question: multiple "-"s
To: Johnny Billquist <email@example.com>
From: Steven M. Bellovin <firstname.lastname@example.org>
Date: 04/18/2006 13:33:37
On Tue, 18 Apr 2006 19:24:33 +0200, Johnny Billquist <email@example.com>
> Hmm, if that is correct, then it's actually meaningless to use several
> "-" arguments to cat in zsh as well.
> zsh itself concatenates all the fiven stdin files, and give the whole
> bunch as one stdin stream, using the first "-" argument of cat. All the
> others will just give eof directly.
> This should be easily verifyable.
> Just try something like
> cat - file - < file1 < file2
> and check if file is located between file1 and file2.
I tried it; as I said, I ran into some bugs that produced garbage output.
--Steven M. Bellovin, http://www.cs.columbia.edu/~smb