diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-04-04 15:32:46 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-04-04 15:32:46 +0200 |
commit | d6d596207a56115e0dda9cf02298267f0a45b65e (patch) | |
tree | b5009f8202fd3c9c83584ba031e06e68cf1823aa /etc/functions/xcat | |
parent | 242ed875c17d8480a42c38d516101164302e2dcf (diff) |
xcat: Support more than one argument
Diffstat (limited to 'etc/functions/xcat')
-rw-r--r-- | etc/functions/xcat | 5 |
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 +} |