Lines Matching defs:foobar
42 function foobar
63 if [[ $(foobar 1) != '33 bye' ]]
67 if [[ $(foobar 2) != 'foobar' ]]
71 if [[ $(bar=foo foobar 1) != '33 foo' ]]
78 if [[ $(foobar 3) != 'foo 10' ]]
82 foobar 4
86 unset -f foobar || err_exit "cannot unset function foobar"
87 typeset -f foobar>/dev/null && err_exit "typeset -f has incorrect exit status"
89 function foobar
95 foobar
172 foobar()
177 foobar
215 unset -f foobar
216 cat > $tmp/foobar <<!
217 function foobar
222 chmod +x $tmp/foobar
224 autoload foobar
225 if [[ $(foobar 2>/dev/null) != foo ]]
228 unset -f foobar
229 function foobar
234 ( foobar ) 2> /dev/null || err_exit "cannot unset readonly variable in function"
420 print ': This does nothing' > foobar
421 chmod +x foobar
422 unset -f foobar
423 { foobar; } 2>/dev/null
441 function foobar
445 typeset -f foobar
448 [[ $(foobar) != ok ]] && err_exit 'typeset -f not generating function'
1037 function foobar
1042 ${SHCOMP:-${SHELL%/*}/shcomp} $tmp/functions > $tmp/foobar
1044 chmod +x $tmp/foobar
1045 rm $tmp/!(dir|foobar)
1048 foobar
1057 unset -f foo foobar bar
1064 print foobar
1166 i) [[ $OPTARG == foobar ]] || err_exit 'OPTARG should be set to foobar in function foo';;
1174 foo -h -i foobar foo2