Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] print errors to stderr
- X-seq: zsh-workers 38744
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: isabella parakiss <izaberina@xxxxxxxxx>
- Subject: Re: [PATCH] print errors to stderr
- Date: Wed, 22 Jun 2016 09:42:06 +0200
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1466581327; bh=4NlEGLQjX+3c3ge0T/cqdJvXvGS/XVP+Mz11800ctW4=; h=cc:In-reply-to:From:References:To:Subject:Date:From:Subject; b=uXRls0B2emqU4nrUxqrPcU6rYDLjPDIOTnOkHcKjOhKcg46BDwHGdvOgxrYqsctOuL90Q1qWiAiV7PrZPunL5GAcjy255ZcCdl7UZlRqpVMgy7Gum8Y0ix/9sjuRdYYZFZO3HZypnVoCQ8PztmSRwtVKrWdvuj2EQarSvaLggwCEFaZ/+hvRryjKQi2clHveGgk0hTXUE9u1JYz7UnbQQdFMfkMAS6cWcG2RwTUm1yhOXyygPryTWCwd7nFamU0brmtvMHLPou71Ma3l50cbi2CzadVmuqZw2HdPMdYsTHPUj9pGAnHhTuWeiP6uSg0EbUAOmxKYtzwDiHEYJIvD4A==
- In-reply-to: <576a3601.43921c0a.46393.50ee@mx.google.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: <576a3601.43921c0a.46393.50ee@mx.google.com>
isabella parakiss wrote:
> Subject: [PATCH] print errors to stderr
> @@ -3633,8 +3633,8 @@ bin_whence(char *nam, char **argv, Options ops, int func)
> - zputs(*argv, stdout);
> - puts(wd ? ": none" : " not found");
> + zputs(*argv, stderr);
> + zputs(wd ? ": none" : " not found", stderr);
I think this behaviour is actually intentional. It is arguably not an
error - the whence command's purpose is to search for something and
report on whether it is found. So it doesn't rely on finding it. Also,
this is compatible with csh and tcsh - the which command was a csh thing
first.
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author