mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-12 05:00:50 +02:00
commit bash-20200710 snapshot
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
BUILD_DIR=/usr/local/build/chet/bash/bash-current
|
||||
BUILD_DIR=/usr/local/build/bash/bash-current
|
||||
THIS_SH=$BUILD_DIR/bash
|
||||
PATH=$PATH:$BUILD_DIR
|
||||
|
||||
|
||||
+37
-1
@@ -235,4 +235,40 @@ f2 ()
|
||||
funcs unset:
|
||||
one-two
|
||||
two-two
|
||||
./builtins.tests: line 279: exit: status: numeric argument required
|
||||
bash: line 1: notthere: No such file or directory
|
||||
one
|
||||
bash: line 1: notthere: No such file or directory
|
||||
two
|
||||
bash: line 1: .: notthere: file not found
|
||||
one
|
||||
bash: line 1: .: notthere: file not found
|
||||
0
|
||||
0
|
||||
0
|
||||
0
|
||||
argv[1] = <one>
|
||||
0
|
||||
argv[1] = <two>
|
||||
0
|
||||
three
|
||||
0
|
||||
four
|
||||
0
|
||||
./builtins7.sub: line 19: : command not found
|
||||
127
|
||||
0
|
||||
./builtins7.sub: line 27: notthere: No such file or directory
|
||||
after 1
|
||||
./builtins7.sub: line 28: notthere: No such file or directory
|
||||
after 2
|
||||
type is a shell builtin
|
||||
+ command -v type
|
||||
type
|
||||
+ command command -v type
|
||||
type
|
||||
+ command -p command -v type
|
||||
type
|
||||
+ command -p -- command -v type
|
||||
type
|
||||
+ set +x
|
||||
./builtins.tests: line 282: exit: status: numeric argument required
|
||||
|
||||
@@ -275,6 +275,9 @@ ${THIS_SH} ./builtins5.sub
|
||||
# test behavior of unset builtin with -f and -v options
|
||||
${THIS_SH} ./builtins6.sub
|
||||
|
||||
# test behavior of command builtin after changing it to a pseudo-keyword
|
||||
${THIS_SH} ./builtins7.sub
|
||||
|
||||
# this must be last -- it is a fatal error
|
||||
exit status
|
||||
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
: ${THIS_SH:=./bash}
|
||||
|
||||
${THIS_SH} -c 'command . notthere ; echo one' bash
|
||||
${THIS_SH} -c '. notthere ; echo two' bash
|
||||
|
||||
${THIS_SH} -o posix -c 'command . notthere ; echo one' bash
|
||||
${THIS_SH} -o posix -c '. notthere ; echo two' bash
|
||||
|
||||
command ; echo $?
|
||||
command -- ; echo $?
|
||||
command -p ; echo $?
|
||||
command -p -- ; echo $?
|
||||
|
||||
command recho one; echo $?
|
||||
command -- recho two; echo $?
|
||||
command -p echo three; echo $?
|
||||
command -p -- echo four ; echo $?
|
||||
|
||||
command ''
|
||||
echo $?
|
||||
|
||||
command -p
|
||||
echo $?
|
||||
|
||||
${THIS_SH} -c 'set -e ; command false ; echo after' bash
|
||||
|
||||
command command command -p . notthere ; echo after 1
|
||||
command -p command command . notthere ; echo after 2
|
||||
|
||||
command -p command -V type
|
||||
|
||||
set -x
|
||||
command -v type
|
||||
command command -v type
|
||||
command -p command -v type
|
||||
command -p -- command -v type
|
||||
set +x
|
||||
|
||||
Reference in New Issue
Block a user