bug-grep
[Top][All Lists]
Advanced

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

"-" as a filename will fail if it is not in first place


From: jidanni
Subject: "-" as a filename will fail if it is not in first place
Date: Sun, 07 Sep 2008 06:42:12 +0800

$ for i in a b c; do echo $i > $i; done
$ echo d|grep . - *
(standard input):d
a:a
b:b
c:c
$ echo d|grep . * -
a:a
b:b
c:c
grep: lseek: Illegal seek
bash: echo: write error: Broken pipe

"-" will fail if it is not in first place.
GNU grep 2.5.3 on Debian sid




reply via email to

[Prev in Thread] Current Thread [Next in Thread]