From 3b3a55e39bbf0d24d28ecd00818b5f300b84f27c Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Mon, 2 Apr 2001 12:24:08 +0000 Subject: moved from ./Functions/Misc/cat --- Functions/Example/cat | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Functions/Example/cat (limited to 'Functions/Example/cat') diff --git a/Functions/Example/cat b/Functions/Example/cat new file mode 100644 index 000000000..612deac03 --- /dev/null +++ b/Functions/Example/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 -- cgit 1.4.1