commit bash-20101222 snapshot

This commit is contained in:
Chet Ramey
2011-12-12 22:12:13 -05:00
parent e88665cc60
commit 89c77bc75b
87 changed files with 18450 additions and 3360 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
BUILD_DIR=/usr/local/build/bash/bash-current
BUILD_DIR=/usr/local/build/chet/bash/bash-current
THIS_SH=$BUILD_DIR/bash
PATH=$PATH:$BUILD_DIR
+8 -4
View File
@@ -200,15 +200,19 @@ ok
4
5000
5000
1
0
0
1
2147483649
8 12
./arith.tests: line 278: ((: x=9 y=41 : syntax error in expression (error token is "y=41 ")
./arith.tests: line 282: a b: syntax error in expression (error token is "b")
./arith.tests: line 283: ((: a b: syntax error in expression (error token is "b")
./arith.tests: line 279: ((: x=9 y=41 : syntax error in expression (error token is "y=41 ")
./arith.tests: line 283: a b: syntax error in expression (error token is "b")
./arith.tests: line 284: ((: a b: syntax error in expression (error token is "b")
42
42
42
42
42
42
./arith.tests: line 294: b[c]d: syntax error in expression (error token is "d")
./arith.tests: line 295: b[c]d: syntax error in expression (error token is "d")
+1
View File
@@ -263,6 +263,7 @@ echo $(( --7 ))
${THIS_SH} ./arith1.sub
${THIS_SH} ./arith2.sub
${THIS_SH} ./arith3.sub
${THIS_SH} ./arith4.sub
# make sure arithmetic expansion handles ints > 2**31 - 1 using intmax_t
echo $(( 2147483645 + 4 ))
+10
View File
@@ -0,0 +1,10 @@
x=$(( !!1 ))
echo $x
x=$(( -!+1 ))
echo $x
x=$(( +--+!!0 ))
echo $x
echo $(( !!+-+-~0 ))
+1 -1
View File
@@ -6,7 +6,7 @@ B
ok 1
ok 2
aéb
0000000 141 303 251 142
0000000 141 303 251 142
0000004
-абвгдежзиклмноп - 16
-абвгдежзиклмноп- 15
+2 -1
View File
@@ -35,7 +35,8 @@ esac
set a b
printf '%s\n' "$*"
printf '%s' "$*" | od -b
# squeeze out blanks to avoid white space differences in od implementations
printf '%s' "$*" | od -b | ( IFS=$' \t\n' ; while read line; do echo $line; done; )
# display differences make this problematic
${THIS_SH} ./intl1.sub
+1 -1
View File
@@ -59,7 +59,7 @@ argv[1] = <>
argv[2] = <>
argv[3] = <>
FOO
0 0 0
0 0 0
0
0
1
+1 -2
View File
@@ -32,5 +32,4 @@ else
fi
echo -n ${A[0]} | cat -vet
echo -n ${A[0]} | wc
echo -n ${A[0]} | wc | ( IFS=$' \t\n' ; while read line; do echo $line; done; )
-1
View File
@@ -90,4 +90,3 @@ trap
trap - SIGCHLD
wait
+6
View File
@@ -86,3 +86,9 @@ swizzle ()
exec {stdin}<&$fd0-;
exec {stdout}>&$fd1-
}
ok 1
./vredir6.sub: redirection error: cannot duplicate fd: Invalid argument
./vredir6.sub: line 10: /dev/null: Invalid argument
./vredir6.sub: redirection error: cannot duplicate fd: Invalid argument
./vredir6.sub: line 13: v: Invalid argument
unset
+2
View File
@@ -41,4 +41,6 @@ ${THIS_SH} ./vredir4.sub
${THIS_SH} ./vredir5.sub
${THIS_SH} ./vredir6.sub
exit 0
+14
View File
@@ -0,0 +1,14 @@
unset v
exec {v}</dev/null
if (( v >= 10 )); then echo ok 1; else echo bad 1; fi
exec {v}<&-
ulimit -n 6
exec </dev/null
unset v
exec {v}</dev/null
echo ${v-unset}