From b94180bb006da19fd1279c7e78f526e75097a1e5 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 13 Mar 2009 21:47:32 +0100 Subject: die, fdie, warn: Print to stderr --- etc/functions/die | 3 ++- etc/functions/fdie | 3 ++- etc/functions/warn | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) (limited to 'etc') diff --git a/etc/functions/die b/etc/functions/die index 6aadfaf..5792d4b 100644 --- a/etc/functions/die +++ b/etc/functions/die @@ -1,2 +1,3 @@ -echo -e "${fail}${*}${reset}" +## vim:ft=zsh +echo -e "${fail}${*}${reset}" > /dev/stderr exit 1 diff --git a/etc/functions/fdie b/etc/functions/fdie index 10c4ed5..e96aeef 100644 --- a/etc/functions/fdie +++ b/etc/functions/fdie @@ -1,2 +1,3 @@ -echo -e "${fail}${*}${reset}" +## vim:ft=zsh +echo -e "${fail}${*}${reset}" > /dev/stderr return 1 diff --git a/etc/functions/warn b/etc/functions/warn index ff8c7d3..4180025 100644 --- a/etc/functions/warn +++ b/etc/functions/warn @@ -1 +1,2 @@ -echo -e "${warn}${*}${reset}" +## vim:ft=zsh +echo -e "${warn}${*}${reset}" > /dev/stderr -- cgit v1.2.3