aboutsummaryrefslogtreecommitdiff
blob: ec10fa96a8c5a49b3fa67f83e05e950a3a1e228c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
# http://bugs.gentoo.org/139591
[ "${at_xfail}" = "yes" ] && exit 77 # see script-0
addwrite $PWD

cat << EOF > test1
#!/bin/sh
export PATH="\`pwd\`/:\${PATH}"
test2
EOF

cat << EOF > test2
#!/bin/sh
test3
EOF

cat << EOF > test3
#!/bin/sh
printf hi
EOF

chmod a+rx test[123]

./test1

exit 0