zsh-workers
 help / color / mirror / code / Atom feed
From: isabella parakiss <izaberina@gmail.com>
To: zsh-workers@zsh.org
Subject: [PATCH] print errors to stderr
Date: Wed, 22 Jun 2016 08:53:51 +0200	[thread overview]
Message-ID: <576a3601.43921c0a.46393.50ee@mx.google.com> (raw)

From 6fa7a56ee8cab083f4d9f4f13a2e1a11ff72bdef Mon Sep 17 00:00:00 2001
From: izabera <izaberina@gmail.com>
Date: Wed, 22 Jun 2016 08:44:57 +0200
Subject: [PATCH] print errors to stderr

---
 Src/builtin.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Src/builtin.c b/Src/builtin.c
index c2fb81e..891e203 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -3633,8 +3633,8 @@ bin_whence(char *nam, char **argv, Options ops, int func)
 		}
 	    }
 	    if (!informed && (wd || v || csh)) {
-		zputs(*argv, stdout);
-		puts(wd ? ": none" : " not found");
+		zputs(*argv, stderr);
+		zputs(wd ? ": none" : " not found", stderr);
 		returnval = 1;
 	    }
 	    popheap();
@@ -3654,7 +3654,7 @@ bin_whence(char *nam, char **argv, Options ops, int func)
 	} else {
 	    /* Not found at all. */
 	    if (v || csh || wd)
-		zputs(*argv, stdout), puts(wd ? ": none" : " not found");
+		zputs(*argv, stderr), zputs(wd ? ": none" : " not found", stderr);
 	    returnval = 1;
 	}
     }
-- 
2.9.0


---
xoxo iza


             reply	other threads:[~2016-06-22  6:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-22  6:53 isabella parakiss [this message]
2016-06-22  7:42 ` Oliver Kiddle
2016-06-22 17:14   ` Bart Schaefer
2016-06-23 10:04     ` Oliver Kiddle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=576a3601.43921c0a.46393.50ee@mx.google.com \
    --to=izaberina@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).