Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] print errors to stderr
- X-seq: zsh-workers 38742
- From: isabella parakiss <izaberina@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] print errors to stderr
- Date: Wed, 22 Jun 2016 08:53:51 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:to:subject:mime-version :content-transfer-encoding; bh=Kr0dctLWd+l9R/vmelw+PwWDeNPvvMB3A8tbiLLcLIM=; b=LFPxLLKBOM6RUopQ4+XwN91GIssdpEw+Hu2ZARj3vKbhfifxBJVWOvG412sMDeJDLg cQ7qE8ieVH4w3IoKAWGppnE+FJ6pC+/b7nXZc7MWxfi9G+FYOKJklKZc185zu3cT6lwx 3VHzYDy8febnU2OvsQC4LHIb107ytBZL+dHX9Ieo7h9NALktfDU/Dh+Tfw+b7BaPhnrX zxx+hNh2pJj9wGe6OP7zM0+rQ89bmk72jPoPzh3v5z5Pyj0JQvKSXvlLY+HqqVOaoJiV sdwfJyt4j5ky4BZKNAbWYNuip0CrW9J/Ma1szJy5QHkZ4xNfDna+qb+t00BoZ4PO5KWv 8DwQ==
- 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
From 6fa7a56ee8cab083f4d9f4f13a2e1a11ff72bdef Mon Sep 17 00:00:00 2001
From: izabera <izaberina@xxxxxxxxx>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author