Files
bash/tests/type3.sub
T
2016-11-14 13:46:09 -05:00

22 lines
192 B
Plaintext

cd ${TMPDIR:-/tmp}
foo() {
rm -f a b c
for f in a b c; do
cat <<-EOF >> ${f}
file
EOF
done
grep . a b c
}
type foo
eval "$(type foo | sed 1d)"
foo
rm -f a b c
cd $OLDPWD
exit 0