From d6d596207a56115e0dda9cf02298267f0a45b65e Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 4 Apr 2009 15:32:46 +0200 Subject: xcat: Support more than one argument --- etc/functions/xcat | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 +} -- cgit v1.2.3