mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-02 18:00:49 +02:00
updated translations; back out change allowing quoted characters and process substitution words in function names; rework readline change for GNU Hurd and ncurses
This commit is contained in:
+7
-5
@@ -60,12 +60,14 @@ rm -f x.sh x.output
|
||||
cat << \EOF > x.sh
|
||||
argmax=$(getconf ARG_MAX 2>/dev/null)
|
||||
if (( argmax <= 0 )); then
|
||||
argmax=1048576
|
||||
echo "exec3.sub: getconf ARG_MAX failed, skipping E2BIG test" >&2
|
||||
exit 1
|
||||
fi
|
||||
v=$(echo {1..250000})
|
||||
while (( ${#v} < $argmax )); do
|
||||
v+=$(echo {250001..350000})
|
||||
done
|
||||
if (( argmax > (2**31) )); then
|
||||
echo "exec3.sub: ARG_MAX too large: $argmax, skipping E2BIG test" >&2
|
||||
exit 0
|
||||
fi
|
||||
printf -v v %.*u "$argmax" 0
|
||||
export v
|
||||
exec ${THIS_SH} </dev/null
|
||||
EOF
|
||||
|
||||
+7
-7
@@ -184,12 +184,12 @@ function a=2 ()
|
||||
printf "FUNCNAME: %s\n" $FUNCNAME
|
||||
}
|
||||
FUNCNAME: a=2
|
||||
<(:)
|
||||
<(:) is a function
|
||||
<(:) ()
|
||||
{
|
||||
echo $FUNCNAME
|
||||
}
|
||||
./func5.sub: line 44: `<(:)': not a valid identifier
|
||||
./func5.sub: line 45: <(:): command not found
|
||||
./func5.sub: line 46: type: <(:): not found
|
||||
./func5.sub: line 51: `'a b c'': not a valid identifier
|
||||
./func5.sub: line 52: a b c: command not found
|
||||
./func5.sub: line 53: type: a b c: not found
|
||||
posix mode:
|
||||
type
|
||||
break is a special shell builtin
|
||||
@@ -241,7 +241,7 @@ break ()
|
||||
}
|
||||
execution
|
||||
inside function break
|
||||
./func5.sub: line 86: `break': is a special builtin
|
||||
./func5.sub: line 94: `break': is a special builtin
|
||||
!! is a function
|
||||
!! ()
|
||||
{
|
||||
|
||||
@@ -37,6 +37,7 @@ set +o posix
|
||||
|
||||
a\=2
|
||||
|
||||
# these are still errors, but one day will not be
|
||||
<(:) ()
|
||||
{
|
||||
echo $FUNCNAME
|
||||
@@ -44,6 +45,13 @@ a\=2
|
||||
\<\(:\)
|
||||
type '<(:)'
|
||||
|
||||
'a b c' ()
|
||||
{
|
||||
echo function a b c
|
||||
}
|
||||
a\ b\ c
|
||||
type 'a b c'
|
||||
|
||||
break()
|
||||
{
|
||||
echo inside function $FUNCNAME
|
||||
|
||||
Reference in New Issue
Block a user