[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] make function local

From: Eduardo A . Bustamante López
Subject: Re: [Help-bash] make function local
Date: Fri, 17 Apr 2015 07:58:41 -0500
User-agent: Mutt/1.5.23 (2014-03-12)

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

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

It's sad. Why do people keep pretending bash is something it isn't :-)?

Eduardo Bustamante

reply via email to

[Prev in Thread] Current Thread [Next in Thread]