summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-03-13 21:47:32 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-03-13 21:47:32 +0100
commitb94180bb006da19fd1279c7e78f526e75097a1e5 (patch)
tree99f4157219082cb4a322f13e7438ae386167abaa /etc
parentaa6173e254e455bdf1b7d48165fe5b595e32ebf6 (diff)
die, fdie, warn: Print to stderr
Diffstat (limited to 'etc')
-rw-r--r--etc/functions/die3
-rw-r--r--etc/functions/fdie3
-rw-r--r--etc/functions/warn3
3 files changed, 6 insertions, 3 deletions
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