blob: 7a7aa26e628c9c31ce0f0d039354e8e9dd5d6dd3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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 2>/dev/null'
function /bin/echo
{
echo bad echo
}
/bin/echo foo
export -f '/bin/echo'
${THIS_SH} -c '/bin/echo bar'
|