commit bash-20110506 snapshot

This commit is contained in:
Chet Ramey
2011-12-29 13:07:43 -05:00
parent af5751ec16
commit bfd181e794
13 changed files with 99 additions and 17 deletions
+10 -1
View File
@@ -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
+2
View File
@@ -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
+27
View File
@@ -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
+1
View File
@@ -44,6 +44,7 @@ abcde
./read3.sub: line 4: read: -1: invalid number
abc
ab
abc
#
while read -u 3 var
do
+5
View File
@@ -15,5 +15,10 @@ echo ab | {
echo $xyz
}
echo abc | {
read -N 4 -d$'\n' foo
echo $foo
}
read -n 1 < $0
echo "$REPLY"