commit bash-20080828 snapshot

This commit is contained in:
Chet Ramey
2011-12-07 09:28:04 -05:00
parent dd4f3dd893
commit 40c8fbee93
78 changed files with 7535 additions and 3603 deletions
-1
View File
@@ -10,5 +10,4 @@ flop
FOO
63 60
root
daemon
-1 -1
+1 -1
View File
@@ -32,7 +32,7 @@ read <&${COPROC[0]}
echo $REPLY
echo ${COPROC[@]}
cat /etc/passwd | grep root | awk -F: '{print $1;}'
cat /etc/passwd | grep root | awk -F: '{print $1;}' | sed 1q
exec 4<&${COPROC[0]}-
exec >&${COPROC[1]}-
+1
View File
@@ -130,6 +130,7 @@ two
three
!
2 history
cat <<!
one
two
+2
View File
@@ -1,3 +1,5 @@
HISTFILE=foohist-$$
unset HISTIGNORE HISTCONTROL
set -o history
history -c
+3 -1
View File
@@ -535,4 +535,6 @@ bar ()
{
echo < <(cat x1)
}
./new-exp.tests: line 562: ABXD: parameter unset
argv[1] = </>
argv[1] = </>
./new-exp.tests: line 568: ABXD: parameter unset
+6
View File
@@ -557,6 +557,12 @@ ${THIS_SH} ./new-exp6.sub
${THIS_SH} ./new-exp7.sub
# problems with stray CTLNUL in bash-4.0-alpha
unset a
a=/a
recho "/${a%/*}"
recho "/${a///a/}"
# this must be last!
expect $0: 'ABXD: parameter unset'
recho ${ABXD:?"parameter unset"}
+2
View File
@@ -555,6 +555,8 @@ echo ${var##?}
${THIS_SH} ./new-exp6.sub
${THIS_SH} ./new-exp7.sub
# this must be last!
expect $0: 'ABXD: parameter unset'
recho ${ABXD:?"parameter unset"}
+3 -3
View File
@@ -178,11 +178,11 @@ ${THIS_SH} ./redir7.sub
${THIS_SH} ./redir8.sub
exec 9>&2
command exec 2>$TMPDIR/foo
command exec 2>$TMPDIR/foo-$$
echo whatsis >&2
echo cat /tmp/foo
cat $TMPDIR/foo
rm -f $TMPDIR/foo
cat $TMPDIR/foo-$$
rm -f $TMPDIR/foo-$$
exec 2>&9
exec 9>&-
+14 -12
View File
@@ -6,28 +6,30 @@ func()
echo "to stderr" >&2
}
rm -f $TMPDIR/foo
TMPFN=$TMPDIR/foo-$$
echo hey > $TMPDIR/foo
func &>> $TMPDIR/foo
rm -f $TMPFN
cat $TMPDIR/foo
echo hey > $TMPFN
func &>> $TMPFN
cat $TMPFN
echo
func &> $TMPDIR/foo
func &> $TMPFN
cat $TMPDIR/foo
cat $TMPFN
echo
func >$TMPDIR/foo
cat $TMPDIR/foo
func >$TMPFN
cat $TMPFN
echo
echo hey > $TMPDIR/foo
func >> $TMPDIR/foo
cat $TMPDIR/foo
echo hey > $TMPFN
func >> $TMPFN
cat $TMPFN
rm -f $TMPDIR/foo
rm -f $TMPFN
logfunc()
{
+1 -1
View File
@@ -1,4 +1,4 @@
LC_ALL=en_US
LC_ALL=en_US.UTF-8
unset LC_ALL
unset LANG
export LC_ALL=C
+6 -4
View File
@@ -2,11 +2,13 @@
: ${TMPDIR:=/tmp}
rm -f $TMPDIR/foo
echo "echo one - OK" > $TMPDIR/foo
. $TMPDIR/foo
TMPFN=$TMPDIR/foo-$$
rm -f $TMPFN
echo "echo one - OK" > $TMPFN
. $TMPFN
echo $?
rm -f $TMPDIR/foo
rm -f $TMPFN
# non-regular readable file
. /dev/null