about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 12:24:08 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 12:24:08 +0000
commit3b3a55e39bbf0d24d28ecd00818b5f300b84f27c (patch)
tree36f6dd4d1c609d51c9803ca36a62ade5bf4e7f0e
parentc1f51e45d90e8cb839aea123c8e0757a265d05fb (diff)
downloadzsh-3b3a55e39bbf0d24d28ecd00818b5f300b84f27c.tar.gz
zsh-3b3a55e39bbf0d24d28ecd00818b5f300b84f27c.tar.xz
zsh-3b3a55e39bbf0d24d28ecd00818b5f300b84f27c.zip
moved from ./Functions/Misc/cat
-rw-r--r--Functions/Example/cat16
1 files changed, 16 insertions, 0 deletions
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