improve of cmpl.
[bush.git] / examples / functions / shcat2
blob8ceff330b9e53d1921c1ff0b58bbddb45230c6e7
1 shcat()
3         while read -r
4         do
5                 echo "$REPLY"
6         done
9 shcat2()
11         while [ $# -ge 1 ]; do
12                 case "$1" in
13                 -)      shcat ;;
14                 *)      shcat < "$1" ;;
15                 esac
16                 shift
17         done
18         exit 0