diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-06-08 09:26:01 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-06-08 09:26:01 +0000 |
commit | fcd7cd1cfa2ba286f4bf73da7a60116cd3912629 (patch) | |
tree | d2aa5a9369bf3af8841d3abde69f52bd483f5526 /Functions/Misc/cat | |
parent | b39cafaa22ad7efc2ac4b64a5eeac8f49bc80e00 (diff) | |
download | zsh-fcd7cd1cfa2ba286f4bf73da7a60116cd3912629.tar.gz zsh-fcd7cd1cfa2ba286f4bf73da7a60116cd3912629.tar.xz zsh-fcd7cd1cfa2ba286f4bf73da7a60116cd3912629.zip |
Initial revision
Diffstat (limited to 'Functions/Misc/cat')
-rw-r--r-- | Functions/Misc/cat | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Functions/Misc/cat b/Functions/Misc/cat new file mode 100644 index 000000000..612deac03 --- /dev/null +++ b/Functions/Misc/cat @@ -0,0 +1,16 @@ +#! /usr/local/bin/zsh -f + +local file + +if ((! ARGC)) then + set -- - +fi + +for file +do + if [[ "$file" == - ]] then + while read -u0ek 4096; do ; done + else + while read -u0ek 4096; do ; done < "$file" + fi +done |