mirror of
https://github.com/zsh-users/zsh
synced 2024-09-06 00:14:40 +00:00
moved from ./Functions/Misc/cat
This commit is contained in:
parent
c1f51e45d9
commit
3b3a55e39b
16
Functions/Example/cat
Normal file
16
Functions/Example/cat
Normal file
|
@ -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
|
Loading…
Reference in a new issue