aboutsummaryrefslogtreecommitdiff
blob: 3c7d66ef86038b35f91376e0ca4fefe30bbb2344 (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
# https://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