]>
Commit | Line | Data |
---|---|---|
8868edaf CR |
1 | : ${THIS_SH:=./bash} |
2 | ||
3 | ${THIS_SH} -c 'command . notthere ; echo one' bash | |
4 | ${THIS_SH} -c '. notthere ; echo two' bash | |
5 | ||
6 | ${THIS_SH} -o posix -c 'command . notthere ; echo one' bash | |
7 | ${THIS_SH} -o posix -c '. notthere ; echo two' bash | |
8 | ||
9 | command ; echo $? | |
10 | command -- ; echo $? | |
11 | command -p ; echo $? | |
12 | command -p -- ; echo $? | |
13 | ||
14 | command recho one; echo $? | |
15 | command -- recho two; echo $? | |
16 | command -p echo three; echo $? | |
17 | command -p -- echo four ; echo $? | |
18 | ||
19 | command '' | |
20 | echo $? | |
21 | ||
22 | command -p | |
23 | echo $? | |
24 | ||
25 | ${THIS_SH} -c 'set -e ; command false ; echo after' bash | |
26 | ||
27 | command command command -p . notthere ; echo after 1 | |
28 | command -p command command . notthere ; echo after 2 | |
29 | ||
30 | command -p command -V type | |
31 | ||
32 | set -x | |
33 | command -v type | |
34 | command command -v type | |
35 | command -p command -v type | |
36 | command -p -- command -v type | |
37 | set +x | |
38 |