Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [patch] "which"-builtin writes diagnostics to stdout
- X-seq: zsh-workers 36332
- From: Timo Buhrmester <fstd.lkml@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: [patch] "which"-builtin writes diagnostics to stdout
- Date: Sun, 30 Aug 2015 07:26:03 +0200
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=qfXMio47G+kXhl2oYkkVjvO+QeViLy0Fqr+l9oxly2g=; b=H3oAqkijUk2Xiev9Su3FHmvLQ79yl0B2x/YwbrbBhKKhXhpLXRM6jbnm+ep0Z6gtZX 2MI1f59hubmHmMIuu0kFGJfz0em7pd4wzY05F43CDbHQFxRgGJQMu9Z8ycqAiv08Vjbs g/1EJfBZWAezrg9dG/hpvoaGcIDZ/ds9bsIhzBgMpsCeUIUwqRry+q54LW1urQ7gUixE V6el1aM1uyg/gBbnnxGJl//ZbFV0HQwq3if0K8hmeBRg4nNOr5K7H+C/i8ZJjeAfHvfO CF0x8QX3snj3e87qR2rhB2NeCGA2DKIpHQTRaT2s8rOfI0bvMSbqxlsmsqvxCYvUv9oF sjfg==
- In-reply-to: <CAH+w=7aNzRtsJcvGcfyYFPAiRtNY69imSN+oGrF7K7unD5aNcA@mail.gmail.com>
- 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>
> > | % which doesnotexist
> > | doesnotexist not found
> >
> > the "doesnotexist not found" message goes to standard output, rather than standard error.
>
> Believe it or not, this is intentional, because the original "which"
> builtin from csh does that. Try it in tcsh, for example.
Uh, okay.
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?
How many csh scripts that run on zsh are out in the wild? How many csh scripts are out in the wild at all? :-)
Timo Buhrmester
Messages sorted by:
Reverse Date,
Date,
Thread,
Author