Hi all,

This is sort of an opinion patch, but chicken-install currently writes
"(none)" to standard output when it doesn't find any eggs, which breaks
simple things like `chicken-status | wc -l`.

I think it'd be better if the message went to standard error. Thoughts?

Evan
>From 2e5c8e964b9225a2f07411afaa04451ca1febd12 Mon Sep 17 00:00:00 2001
From: Evan Hanson <ev...@foldling.org>
Date: Wed, 6 Aug 2014 18:25:19 +1200
Subject: [PATCH] Make chicken-install write "(none)" to stderr when no eggs
 are matched

---
 chicken-status.scm |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chicken-status.scm b/chicken-status.scm
index c3a99c7..b0b0f0c 100644
--- a/chicken-status.scm
+++ b/chicken-status.scm
@@ -168,7 +168,7 @@ EOF
                                         (else (map ##sys#glob->regexp pats)))))
                                 (eggs/exts ((if eggs gather-eggs 
gather-extensions) patterns)))
                            (if (null? eggs/exts)
-                               (print "(none)")
+                               (display "(none)\n" (current-error-port))
                                ((cond (eggs list-installed-eggs)
                                       (files list-installed-files)
                                       (else list-installed-extensions))
-- 
1.7.10.4

_______________________________________________
Chicken-hackers mailing list
Chicken-hackers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-hackers

Reply via email to