Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [patch] "which"-builtin writes diagnostics to stdout
- X-seq: zsh-workers 36356
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: [patch] "which"-builtin writes diagnostics to stdout
- Date: Mon, 31 Aug 2015 23:04:31 -0700
- Cc: Timo Buhrmester <fstd.lkml@xxxxxxxxx>
- In-reply-to: <20150830052603.GE18893@frozen.localdomain>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20150830030614.GB18893@frozen.localdomain> <CAH+w=7aNzRtsJcvGcfyYFPAiRtNY69imSN+oGrF7K7unD5aNcA@mail.gmail.com> <20150830052603.GE18893@frozen.localdomain>
On Aug 30, 7:26am, Timo Buhrmester wrote:
} Subject: Re: [patch] "which"-builtin writes diagnostics to stdout
}
} > > | % which doesnotexist
} > > | doesnotexist not found
} > >
} > > the "doesnotexist not found" message goes to standard output,
} > > rather than standard error.
}
} Out of curiosity, what reason would zsh (being more bourne-ish than
} csh-ish, as far as I can tell) have to maintain this particular csh
} glitch rather than fixing it?
What makes you think it's a glitch?
I.e., "not found" here is not an error message! It is the answer to the
question you asked, and you asked for the answer in csh format ("which"
is "whence -c"). If you don't want csh behavior, you should be using
"whence" directly so that you can omit the "-c" option.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author