mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-03 02:10:50 +02:00
Bash-5.3-alpha release
This commit is contained in:
@@ -166,6 +166,7 @@ export -f zf
|
||||
|
||||
${THIS_SH} -c 'type -t zf'
|
||||
${THIS_SH} -c 'type zf'
|
||||
unset -f zf
|
||||
|
||||
${THIS_SH} ./func1.sub
|
||||
|
||||
@@ -179,6 +180,9 @@ ${THIS_SH} ./func3.sub
|
||||
# FUNCNEST testing
|
||||
${THIS_SH} ./func4.sub
|
||||
|
||||
# function naming restrictions
|
||||
${THIS_SH} ./func5.sub
|
||||
|
||||
unset -f myfunction
|
||||
myfunction() {
|
||||
echo "bad shell function redirection"
|
||||
@@ -195,4 +199,15 @@ segv()
|
||||
segv
|
||||
echo $?
|
||||
|
||||
# functions can have attributes
|
||||
rfunc()
|
||||
{
|
||||
local -
|
||||
local var
|
||||
|
||||
local -p
|
||||
}
|
||||
readonly -f rfunc
|
||||
readonly -f
|
||||
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user