blob: 442f22e4f4a19c1bcf6eab75523c2eb746660041 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
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
|