about summary refs log tree commit diff
path: root/Functions/Misc/cat
diff options
context:
space:
mode:
Diffstat (limited to 'Functions/Misc/cat')
-rw-r--r--Functions/Misc/cat16
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