mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-07 20:30:52 +02:00
commit bash-20141003 snapshot
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
# test function names that cannot be exported
|
||||
|
||||
unset foo # remove from environment if necessary
|
||||
|
||||
function foo=bar
|
||||
{
|
||||
echo equals-1
|
||||
}
|
||||
|
||||
export -f 'foo=bar'
|
||||
echo status: $?
|
||||
|
||||
foo\=bar
|
||||
printenv | grep 'foo=bar'
|
||||
${THIS_SH} -c 'foo\=bar'
|
||||
|
||||
function /bin/echo
|
||||
{
|
||||
echo bad echo
|
||||
}
|
||||
|
||||
/bin/echo foo
|
||||
export -f '/bin/echo'
|
||||
|
||||
${THIS_SH} -c '/bin/echo bar'
|
||||
Reference in New Issue
Block a user