summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-04-04 15:32:46 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-04-04 15:32:46 +0200
commitd6d596207a56115e0dda9cf02298267f0a45b65e (patch)
treeb5009f8202fd3c9c83584ba031e06e68cf1823aa
parent242ed875c17d8480a42c38d516101164302e2dcf (diff)
xcat: Support more than one argument
-rw-r--r--etc/functions/xcat5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/functions/xcat b/etc/functions/xcat
index 8a03d30..3b74fe9 100644
--- a/etc/functions/xcat
+++ b/etc/functions/xcat
@@ -1,2 +1,5 @@
## vim:ft=zsh
-[[ -r $1 ]] && cat $1
+while [[ -n $1 ]] {
+ [[ -r $1 ]] && cat $1
+ shift
+}