commit bash-20090305 snapshot

This commit is contained in:
Chet Ramey
2011-12-08 20:06:13 -05:00
parent 6932f7f549
commit 602bb73910
38 changed files with 13470 additions and 5936 deletions
+1 -1
View File
@@ -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
+9
View File
@@ -0,0 +1,9 @@
BUILD_DIR=/usr/local/build/chet/bash/bash-current
THIS_SH=$BUILD_DIR/bash
PATH=$PATH:$BUILD_DIR
export THIS_SH PATH
rm -f /tmp/xx
/bin/sh "$@"
+5 -2
View File
@@ -52,11 +52,14 @@ a-{bdef-g-c a-{bdef-i-c
10 8 6 4 2
1 3 5 7 9 11 13 15 17 19
1
0100 0095 0090 0085 0080 0075 0070 0065 0060 0055 0050 0045 0040 0035 0030 0025 0020 0015 0010 0005 0000
00100 00095 00090 00085 00080 00075 00070 00065 00060 00055 00050 00045 00040 00035 00030 00025 00020 00015 00010 00005 00000
100 95 90 85 80 75 70 65 60 55 50 45 40 35 30 25 20 15 10 5 0
100 95 90 85 80 75 70 65 60 55 50 45 40 35 30 25 20 15 10 5 0
a b c d e f g h i j k l m n o p q r s t u v w x y z
a c e g i k m o q s u w y
z x v t r p n l j h f d b
10 8 6 4 2 0
10 8 6 4 2 0
-50 -45 -40 -35 -30 -25 -20 -15 -10 -5 0
{1..10.f}
{1..ff}
{1..10..ff}
+5
View File
@@ -94,6 +94,11 @@ echo {a..z}
echo {a..z..2}
echo {z..a..-2}
# unwanted zero-padding -- fixed post-bash-4.0
echo {10..0..2}
echo {10..0..-2}
echo {-50..-0..5}
# bad
echo {1..10.f}
echo {1..ff}
+3
View File
@@ -202,3 +202,6 @@ ${THIS_SH} ./comsub-posix1.sub
: $(echo foo)"
"
# fixed after bash-4.0 released
: $(case a in a) echo ;; # comment
esac)
+8
View File
@@ -19,3 +19,11 @@ argv[1] = <sed> argv[2] = <-e> argv[3] = <s/[^I:]//g>
argv[1] = <foo\^Jbar>
argv[1] = <foobar>
argv[1] = <foo\^Jbar>
#esac
a
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
+2
View File
@@ -40,3 +40,5 @@ bar'`
echo $(recho 'foo\
bar')
${THIS_SH} ./comsub1.sub
+42
View File
@@ -0,0 +1,42 @@
# command substution parsing tests
TABSIZE=`grep -v '^[ #]' $CAPS </dev/null | grep -v "^$" | grep -v "^capalias"| grep -v "^infoalias" | wc -l`
recho `echo ab cd #efg
hijkl`
recho ab$(echo mn; echo op)yz
a=`echo 'a b c' | sed 's/ /\\
/g' | grep 'b'`
recho $a
recho `echo 'a\' b`
recho `echo '\$' bab`
recho `echo '\`' ab`
recho `echo '\\' ab`
# old-style command substitution parsing compatibility tests -- post bash-3.1
recho 'foo \\
bar'
recho 'foo \
bar'
echo `recho sed -e 's/[ :]/\\
/g'`
echo `recho sed -e 's/[ :]/\
/g'`
echo `recho 'foo\\
bar'`
echo `recho 'foo\
bar'`
echo $(recho 'foo\
bar')
+48
View File
@@ -0,0 +1,48 @@
: $(echo \;)
: $(case a in a) echo ;;# comment
esac)
: $(case a in a) echo ;; # comment
esac)
: $(: \;# not a comment )
: $(: \ # not a comment)
echo $(case a in a) echo \#esac ;;
esac)
: $(case a in a) : ;#esac ;;
esac)
: $(case a in a) : ;#esac comment )
esac)
: $(case a in a) : ;
esac)
echo $(#comment )
echo a)
echo $(case a in (a) echo ok 1;; # comment
esac)
echo $(case a in (a) echo ok 2;; # comment
(b) echo moo;;
esac)
echo $(case a in (a) echo ok 3 # comment
;;
esac)
echo $(case a in a) echo ok 4;; # comment
esac)
echo $(case a in a) echo ok 5;; # comment
b) echo moo;;
esac)
echo $(case a in (a) echo ok 6 # comment
;;
esac)
+26
View File
@@ -0,0 +1,26 @@
: $(echo \;)
: $(case a in a) echo ;;# comment
esac)
: $(case a in a) echo ;; # comment
esac)
: $(: \;# not a comment )
: $(: \ # not a comment)
echo $(case a in a) echo \#esac ;;
esac)
: $(case a in a) : ;#esac ;;
esac)
: $(case a in a) : ;#esac comment )
esac)
: $(case a in a) : ;
esac)
echo $(#comment )
echo a)