Subject: [PATCH] print errors to stderr
From: isabella parakiss <[email-masked]>
To: [email-masked]
Date: Wed, 22 Jun 2016 08:53:51 +0200
List-Id: Zsh Workers List <zsh-workers.zsh.org>

From 6fa7a56ee8cab083f4d9f4f13a2e1a11ff72bdef Mon Sep 17 00:00:00 2001
From: izabera <[email-masked]>
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