mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-06 02:02:42 +02:00
commit bash-20191213 snapshot
This commit is contained in:
+2
-2
@@ -168,7 +168,7 @@ echo ${x[4]}
|
||||
echo efgh | ( read x[1] ; echo ${x[1]} )
|
||||
echo wxyz | ( declare -a x ; read x ; echo $x ; echo ${x[0]} )
|
||||
|
||||
# Make sure that arrays can be used to save the positional paramters verbatim
|
||||
# Make sure that arrays can be used to save the positional parameters verbatim
|
||||
set -- a 'b c' d 'e f g' h
|
||||
|
||||
ARGV=( [0]=$0 "$@" )
|
||||
@@ -260,7 +260,7 @@ ${THIS_SH} ./array2.sub
|
||||
# some old bugs and ksh93 compatibility tests
|
||||
${THIS_SH} ./array3.sub
|
||||
|
||||
# some compound assingment parsing problems that showed up in bash-3.1-release
|
||||
# some compound assignment parsing problems that showed up in bash-3.1-release
|
||||
${THIS_SH} ./array4.sub
|
||||
|
||||
set +u
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@ declare -p fluff
|
||||
|
||||
unset fluff
|
||||
|
||||
# TEST - compount assignment and variable attributes
|
||||
# TEST - compound assignment and variable attributes
|
||||
declare -A wheat chaff
|
||||
wheat=( [zero]=0 [one]=a [two]=b [three]=c )
|
||||
|
||||
|
||||
@@ -137,7 +137,7 @@ hash -r
|
||||
hash
|
||||
|
||||
# this had better succeed, since command -p guarantees we will find the
|
||||
# standard utilties
|
||||
# standard utilities
|
||||
command -p hash rm
|
||||
|
||||
# check out source/.
|
||||
@@ -186,7 +186,7 @@ echo "$@"
|
||||
# test out cd and $CDPATH
|
||||
${THIS_SH} ./builtins1.sub
|
||||
|
||||
# test behavior of `.' when given a non-existant file argument
|
||||
# test behavior of `.' when given a non-existent file argument
|
||||
${THIS_SH} ./source5.sub
|
||||
|
||||
# test bugs in sourcing non-regular files, fixed post-bash-3.2
|
||||
|
||||
@@ -116,7 +116,7 @@ echo `sourced_fn`
|
||||
x=$((sourced_fn))
|
||||
x={ sourced_fn }
|
||||
|
||||
# Make sure we step into sourced_fn as a comand when we request to do so.
|
||||
# Make sure we step into sourced_fn as a command when we request to do so.
|
||||
# Vanilla bash 2.0 doesn't do.
|
||||
set -o functrace
|
||||
x={ sourced_fn }
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ export LC_ALL=C
|
||||
export LANG=C
|
||||
|
||||
dirs -c
|
||||
# error -- nonexistant directory
|
||||
# error -- non-existent directory
|
||||
pushd /tmp/xxx-notthere
|
||||
|
||||
# errors -- empty stack
|
||||
|
||||
+1
-1
@@ -108,7 +108,7 @@ local
|
||||
# logout of a non-login shell is an error
|
||||
logout
|
||||
|
||||
# try to hash a non-existant command
|
||||
# try to hash a non-existent command
|
||||
hash notthere
|
||||
|
||||
# bad option to hash, although it may mean `verbose' at some future point
|
||||
|
||||
+1
-1
@@ -50,7 +50,7 @@ if [[ $LINES2 -gt 0 ]]; then
|
||||
fi
|
||||
set +o posix
|
||||
|
||||
# now see what happens when we try it with a non-existant file
|
||||
# now see what happens when we try it with a non-existent file
|
||||
rm -f /tmp/redir-notthere
|
||||
LINES3=$(< /tmp/redir-notthere)
|
||||
echo $?
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ export LANG=C
|
||||
|
||||
set +o posix
|
||||
|
||||
# attempting to source a non-existant file is not an error...
|
||||
# attempting to source a non-existent file is not an error...
|
||||
. /tmp/source-notthere
|
||||
|
||||
echo after bad source 1
|
||||
|
||||
+1
-1
@@ -247,7 +247,7 @@ ${THIS_SH} ./varenv11.sub
|
||||
# temporary environment variable propagation and scoping in posix mode
|
||||
${THIS_SH} ./varenv12.sub
|
||||
|
||||
# temporary environment and invalid shell indentifier names
|
||||
# temporary environment and invalid shell identifier names
|
||||
${THIS_SH} ./varenv13.sub
|
||||
|
||||
# localvar_inherit
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
# testing framework for local variable inheritence
|
||||
# testing framework for local variable inheritance
|
||||
|
||||
shopt -s localvar_inherit
|
||||
declare -A var
|
||||
|
||||
Reference in New Issue
Block a user