1998-04-17 19:52:44 +00:00
|
|
|
before exec1.sub: one two three
|
|
|
|
calling exec1.sub
|
1997-06-05 14:59:13 +00:00
|
|
|
aa bb cc dd ee
|
1998-04-17 19:52:44 +00:00
|
|
|
after exec1.sub with args: 0
|
1997-06-05 14:59:13 +00:00
|
|
|
|
1998-04-17 19:52:44 +00:00
|
|
|
after exec1.sub without args: 0
|
2014-02-26 09:36:43 -05:00
|
|
|
after exec1.sub: one two three
|
|
|
|
./execscript: line 21: notthere: command not found
|
1997-06-05 14:59:13 +00:00
|
|
|
127
|
2004-07-27 13:29:18 +00:00
|
|
|
/tmp/bash: notthere: No such file or directory
|
1997-06-05 14:59:13 +00:00
|
|
|
127
|
|
|
|
/bin/sh: /bin/sh: cannot execute binary file
|
|
|
|
126
|
2014-02-26 09:36:43 -05:00
|
|
|
./execscript: line 40: /: Is a directory
|
1997-06-05 14:59:13 +00:00
|
|
|
126
|
2016-09-15 16:59:08 -04:00
|
|
|
/: /: Is a directory
|
1997-06-05 14:59:13 +00:00
|
|
|
126
|
2014-02-26 09:36:43 -05:00
|
|
|
./execscript: line 47: .: /: is a directory
|
1997-06-05 14:59:13 +00:00
|
|
|
1
|
2011-11-21 20:51:19 -05:00
|
|
|
126
|
2001-11-13 17:56:06 +00:00
|
|
|
0
|
1997-06-05 14:59:13 +00:00
|
|
|
this is bashenv
|
2002-07-17 14:10:11 +00:00
|
|
|
./exec3.sub: line 3: /tmp/bash-notthere: No such file or directory
|
2011-11-22 19:11:26 -05:00
|
|
|
127
|
2014-02-26 09:36:43 -05:00
|
|
|
./execscript: line 71: notthere: No such file or directory
|
1997-06-05 14:59:13 +00:00
|
|
|
127
|
2014-02-26 09:36:43 -05:00
|
|
|
./execscript: line 74: notthere: No such file or directory
|
1997-06-05 14:59:13 +00:00
|
|
|
127
|
2014-02-26 09:36:43 -05:00
|
|
|
./execscript: line 77: notthere: command not found
|
1997-06-05 14:59:13 +00:00
|
|
|
127
|
|
|
|
this is sh
|
|
|
|
this is sh
|
|
|
|
unset
|
|
|
|
ok
|
|
|
|
5
|
2002-07-17 14:10:11 +00:00
|
|
|
./exec5.sub: line 4: exec: bash-notthere: not found
|
1998-04-17 19:52:44 +00:00
|
|
|
127
|
|
|
|
this is ohio-state
|
2001-04-06 19:14:31 +00:00
|
|
|
0
|
|
|
|
1
|
|
|
|
1
|
|
|
|
0
|
|
|
|
42
|
|
|
|
42
|
|
|
|
0
|
|
|
|
1
|
|
|
|
1
|
|
|
|
0
|
|
|
|
0
|
|
|
|
1
|
|
|
|
0
|
|
|
|
1
|
2004-07-27 13:29:18 +00:00
|
|
|
testb
|
2009-01-12 13:36:28 +00:00
|
|
|
expand_aliases on
|
2011-11-22 19:11:26 -05:00
|
|
|
1
|
|
|
|
1
|
|
|
|
1
|
|
|
|
1
|
|
|
|
0
|
|
|
|
0
|
|
|
|
0
|
|
|
|
0
|
2016-09-15 16:59:08 -04:00
|
|
|
/usr/local/bin:/usr/GNU/bin:/usr/bin:/bin:.
|
|
|
|
cannot find cat in $TMPDIR
|
|
|
|
cannot find cat with empty $PATH
|
|
|
|
PATH = /usr/local/bin:/usr/GNU/bin:/usr/bin:/bin:.
|
|
|
|
cannot find cat in $TMPDIR with hash
|
|
|
|
cannot find cat with empty $PATH with hash
|
|
|
|
PATH = /usr/local/bin:/usr/GNU/bin:/usr/bin:/bin:.
|
|
|
|
trap -- 'echo foo $BASH_SUBSHELL' EXIT
|
|
|
|
trap -- 'echo USR1 $BASHPID' SIGUSR1
|
|
|
|
between
|
|
|
|
trap -- 'echo foo $BASH_SUBSHELL' EXIT
|
|
|
|
trap -- 'echo USR1 $BASHPID' SIGUSR1
|
|
|
|
between 2
|
|
|
|
trap -- 'echo foo $BASH_SUBSHELL' EXIT
|
|
|
|
trap -- 'echo USR1 $BASHPID' SIGUSR1
|
|
|
|
in subshell: 1
|
|
|
|
in subshell pipeline: 1
|
|
|
|
group pipeline: 1
|
|
|
|
EXIT-group.1
|
|
|
|
foo 0
|
2005-12-07 14:08:12 +00:00
|
|
|
after
|
2016-09-15 16:59:08 -04:00
|
|
|
exit code: 1
|
|
|
|
exit code: 1
|
|
|
|
exit code: 1
|
|
|
|
exit code: 127
|
|
|
|
exit code: 127
|
|
|
|
exit code: 127
|
|
|
|
a
|
|
|
|
b
|
|
|
|
c
|
|
|
|
A
|
|
|
|
B
|
|
|
|
c
|
|
|
|
d
|
|
|
|
c
|
|
|
|
d
|
|
|
|
e
|
|
|
|
x1
|
|
|
|
x1a
|
|
|
|
x2
|
|
|
|
x2a
|
|
|
|
x2b
|
|
|
|
x3
|
|
|
|
x3a
|
|
|
|
x3b
|