]> git.ipfire.org Git - thirdparty/bash.git/blob - tests/exec.right
bash-4.4 rc1 release
[thirdparty/bash.git] / tests / exec.right
1 before exec1.sub: one two three
2 calling exec1.sub
3 aa bb cc dd ee
4 after exec1.sub with args: 0
5
6 after exec1.sub without args: 0
7 after exec1.sub: one two three
8 ./execscript: line 21: notthere: command not found
9 127
10 /tmp/bash: notthere: No such file or directory
11 127
12 /bin/sh: /bin/sh: cannot execute binary file
13 126
14 ./execscript: line 40: /: Is a directory
15 126
16 /: /: Is a directory
17 126
18 ./execscript: line 47: .: /: is a directory
19 1
20 126
21 0
22 this is bashenv
23 ./exec3.sub: line 3: /tmp/bash-notthere: No such file or directory
24 127
25 ./execscript: line 71: notthere: No such file or directory
26 127
27 ./execscript: line 74: notthere: No such file or directory
28 127
29 ./execscript: line 77: notthere: command not found
30 127
31 this is sh
32 this is sh
33 unset
34 ok
35 5
36 ./exec5.sub: line 4: exec: bash-notthere: not found
37 127
38 this is ohio-state
39 0
40 1
41 1
42 0
43 42
44 42
45 0
46 1
47 1
48 0
49 0
50 1
51 0
52 1
53 testb
54 expand_aliases on
55 1
56 1
57 1
58 1
59 0
60 0
61 0
62 0
63 /usr/local/bin:/usr/GNU/bin:/usr/bin:/bin:.
64 cannot find cat in $TMPDIR
65 cannot find cat with empty $PATH
66 PATH = /usr/local/bin:/usr/GNU/bin:/usr/bin:/bin:.
67 cannot find cat in $TMPDIR with hash
68 cannot find cat with empty $PATH with hash
69 PATH = /usr/local/bin:/usr/GNU/bin:/usr/bin:/bin:.
70 trap -- 'echo foo $BASH_SUBSHELL' EXIT
71 trap -- 'echo USR1 $BASHPID' SIGUSR1
72 between
73 trap -- 'echo foo $BASH_SUBSHELL' EXIT
74 trap -- 'echo USR1 $BASHPID' SIGUSR1
75 between 2
76 trap -- 'echo foo $BASH_SUBSHELL' EXIT
77 trap -- 'echo USR1 $BASHPID' SIGUSR1
78 in subshell: 1
79 in subshell pipeline: 1
80 group pipeline: 1
81 EXIT-group.1
82 foo 0
83 after
84 exit code: 1
85 exit code: 1
86 exit code: 1
87 exit code: 127
88 exit code: 127
89 exit code: 127
90 a
91 b
92 c
93 A
94 B
95 c
96 d
97 c
98 d
99 e
100 x1
101 x1a
102 x2
103 x2a
104 x2b
105 x3
106 x3a
107 x3b