mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-09 19:50:32 +02:00
commit bash-20110506 snapshot
This commit is contained in:
+10
-1
@@ -98,4 +98,13 @@ trap: usage: trap [-lp] [[arg] signal_spec ...]
|
||||
./errors.tests: line 250: kill: `': not a pid or valid job spec
|
||||
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
|
||||
./errors.tests: line 255: set: trackall: invalid option name
|
||||
./errors.tests: line 262: `!!': not a valid identifier
|
||||
./errors1.sub: line 1: .: -i: invalid option
|
||||
.: usage: . filename [arguments]
|
||||
./errors1.sub: line 9: shift: -4: shift count out of range
|
||||
./errors1.sub: line 5: return: -1: invalid option
|
||||
return: usage: return [n]
|
||||
./errors1.sub: line 14: break: -1: loop count out of range
|
||||
./errors1.sub: line 20: return: -2: invalid option
|
||||
return: usage: return [n]
|
||||
after f
|
||||
./errors.tests: line 264: `!!': not a valid identifier
|
||||
|
||||
@@ -254,6 +254,8 @@ kill -INT
|
||||
# bad shell option names
|
||||
set -o trackall # bash is not ksh
|
||||
|
||||
${THIS_SH} ./errors1.sub
|
||||
|
||||
# this must be last!
|
||||
# in posix mode, a function name must be a valid identifier
|
||||
# this can't go in posix2.tests, since it causes the shell to exit
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
. -i /dev/tty
|
||||
|
||||
f()
|
||||
{
|
||||
return -1
|
||||
}
|
||||
|
||||
set -- a b c
|
||||
shift -4
|
||||
|
||||
f
|
||||
|
||||
for f in 1 2 3; do
|
||||
break -1
|
||||
done
|
||||
|
||||
|
||||
f()
|
||||
{
|
||||
return -25
|
||||
}
|
||||
|
||||
f
|
||||
echo after f
|
||||
exit -25
|
||||
|
||||
exit -56
|
||||
@@ -44,6 +44,7 @@ abcde
|
||||
./read3.sub: line 4: read: -1: invalid number
|
||||
abc
|
||||
ab
|
||||
abc
|
||||
#
|
||||
while read -u 3 var
|
||||
do
|
||||
|
||||
@@ -15,5 +15,10 @@ echo ab | {
|
||||
echo $xyz
|
||||
}
|
||||
|
||||
echo abc | {
|
||||
read -N 4 -d$'\n' foo
|
||||
echo $foo
|
||||
}
|
||||
|
||||
read -n 1 < $0
|
||||
echo "$REPLY"
|
||||
|
||||
Reference in New Issue
Block a user