Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
I/O redirection problem in "zsh"
- X-seq: zsh-workers 17853
- From: Matthias Scheler <tron@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: I/O redirection problem in "zsh"
- Date: Fri, 25 Oct 2002 12:40:48 +0200
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Hello,
the I/O redirection in the following command doesn't work properly in "zsh":
grep localhost /etc/hosts fasel 2>&1 >/dev/null | cat -b
tron@colwyn:~>grep localhost /etc/hosts fasel 2>&1 >/dev/null | cat -b
1 grep: fasel: No such file or directory
2 /etc/hosts:::1 localhost
3 /etc/hosts:127.0.0.1 localhost
tron@colwyn:~>sh
$ grep localhost /etc/hosts fasel 2>&1 >/dev/null | cat -b
1 grep: fasel: No such file or directory
$ bash
bash-2.05$ grep localhost /etc/hosts fasel 2>&1 >/dev/null | cat -b
1 grep: fasel: No such file or directory
bash-2.05$ ksh
$ grep localhost /etc/hosts fasel 2>&1 >/dev/null | cat -b
1 grep: fasel: No such file or directory
I can reproduce this problem with ZSH 3.0.8 under Solaris and ZSH 4.0.6
under NetBSD.
Kind regards
--
Matthias Scheler http://scheler.de/~matthias/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author