On Thu, Apr 16, 2015 at 10:38:22PM -0700, Linda Walsh wrote: [...] > AFAIK, _exec_gvim, can only be called from within "function gvim", no?
No. Doing this: outerfunc() { func() { ...; } func args unset -f func } outerfunc Doesn't guarantee that `func' will be only called from outerfunc. If you have traps defined they can switch to other contexts where that funtion will be available. It's sad. Why do people keep pretending bash is something it isn't :-)? -- Eduardo Bustamante https://dualbus.me/