mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-10 21:50:49 +02:00
commit bash-20120706 snapshot
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
:; ./shx
|
||||
|
||||
sh:
|
||||
<&$fd ok
|
||||
nlbq Mon Aug 3 02:45:00 EDT 1992
|
||||
bang geoff
|
||||
quote 712824302
|
||||
setbq defmsgid=<1992Aug3.024502.6176@host>
|
||||
bgwait sleep done... wait 6187
|
||||
|
||||
|
||||
bash:
|
||||
<&$fd ok
|
||||
nlbq Mon Aug 3 02:45:09 EDT 1992
|
||||
bang geoff
|
||||
quote 712824311
|
||||
setbq defmsgid=<1992Aug3.024512.6212@host>
|
||||
bgwait sleep done... wait 6223
|
||||
|
||||
|
||||
ash:
|
||||
<&$fd shx1: 4: Syntax error: Bad fd number
|
||||
nlbq Mon Aug 3 02:45:19 EDT 1992
|
||||
bang geoff
|
||||
quote getdate: `"now"' not a valid date
|
||||
|
||||
setbq defmsgid=<1992Aug3.` echo 024521
|
||||
bgwait sleep done... wait 6241
|
||||
|
||||
|
||||
ksh:
|
||||
<&$fd ok
|
||||
nlbq ./shx: 6248 Memory fault - core dumped
|
||||
bang geoff
|
||||
quote getdate: `"now"' not a valid date
|
||||
|
||||
setbq defmsgid=<1992Aug3.024530.6257@host>
|
||||
bgwait no such job: 6265
|
||||
wait 6265
|
||||
sleep done...
|
||||
|
||||
zsh:
|
||||
<&$fd ok
|
||||
nlbq Mon Aug 3 02:45:36 EDT 1992
|
||||
bang shx3: event not found: /s/ [4]
|
||||
quote 712824337
|
||||
setbq defmsgid=<..6290@host>
|
||||
bgwait shx7: unmatched " [9]
|
||||
sleep done...
|
||||
:;
|
||||
@@ -0,0 +1,10 @@
|
||||
#! /bin/sh
|
||||
for cmd in sh bash ash ksh zsh
|
||||
do
|
||||
echo
|
||||
echo $cmd:
|
||||
for demo in shx?
|
||||
do
|
||||
$cmd $demo
|
||||
done
|
||||
done
|
||||
+11
-7
@@ -13,8 +13,8 @@ expect <one>
|
||||
argv[1] = <one>
|
||||
expect <two>
|
||||
argv[1] = <two>
|
||||
expect <bar>
|
||||
bar
|
||||
expect <one>
|
||||
one
|
||||
expect <one>
|
||||
one
|
||||
expect <one>
|
||||
@@ -27,12 +27,12 @@ changevar: expect <three four five>
|
||||
argv[1] = <three four five>
|
||||
expect <three four five>
|
||||
argv[1] = <three four five>
|
||||
./nameref.tests: line 92: bar: readonly variable
|
||||
./nameref.tests: line 93: foo: readonly variable
|
||||
./nameref.tests: line 93: bar: readonly variable
|
||||
./nameref.tests: line 94: foo: readonly variable
|
||||
one
|
||||
one
|
||||
./nameref.tests: line 105: foo: readonly variable
|
||||
./nameref.tests: line 102: foo: readonly variable
|
||||
./nameref.tests: line 106: foo: readonly variable
|
||||
./nameref.tests: line 103: foo: readonly variable
|
||||
one
|
||||
one
|
||||
bar
|
||||
@@ -43,7 +43,11 @@ expect <unset>
|
||||
argv[1] = <unset>
|
||||
expect <unset>
|
||||
argv[1] = <unset>
|
||||
./nameref3.sub: line 15: unset: bar: cannot unset: readonly variable
|
||||
expect <bar>
|
||||
argv[1] = <bar>
|
||||
expect <unset>
|
||||
argv[1] = <unset>
|
||||
./nameref3.sub: line 21: unset: bar: cannot unset: readonly variable
|
||||
expect <two>
|
||||
two
|
||||
expect <two>
|
||||
|
||||
@@ -87,6 +87,7 @@ echo "expect <three four five>"
|
||||
recho "$bar"
|
||||
|
||||
unset foo bar
|
||||
unset -n foo bar
|
||||
readonly foo=one
|
||||
typeset -n bar=foo
|
||||
bar=4
|
||||
|
||||
+7
-1
@@ -2,12 +2,18 @@
|
||||
bar=one
|
||||
typeset -n foo=bar
|
||||
|
||||
# normal unset unsets both nameref and variable it references
|
||||
# normal unset unsets only variable nameref references
|
||||
# need unset -n to unset nameref itself
|
||||
unset foo
|
||||
echo "expect <unset>"
|
||||
recho ${bar-unset}
|
||||
echo "expect <unset>"
|
||||
recho ${foo-unset}
|
||||
echo "expect <bar>"
|
||||
recho ${!foo}
|
||||
unset -n foo
|
||||
echo "expect <unset>"
|
||||
recho "${!foo-unset}"
|
||||
|
||||
readonly bar=two
|
||||
typeset -n foo=bar
|
||||
|
||||
@@ -58,6 +58,7 @@ command typeset -n yy=xx
|
||||
echo $?
|
||||
|
||||
unset foo bar
|
||||
unset -n foo bar
|
||||
set foo
|
||||
typeset -n bar=$1
|
||||
foo=hello
|
||||
|
||||
Reference in New Issue
Block a user