[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
}
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/
Re: [Help-bash] make function local, Linda Walsh, 2015/04/17
Re: [Help-bash] make function local,
Eduardo A . Bustamante López <=
Re: [Help-bash] make function local, Linda Walsh, 2015/04/17
Re: [Help-bash] make function local, Greg Wooledge, 2015/04/17
Re: [Help-bash] make function local, Linda Walsh, 2015/04/17
Re: [Help-bash] make function local, Eduardo A . Bustamante López, 2015/04/17
Re: [Help-bash] make function local, Linda Walsh, 2015/04/17
Re: [Help-bash] make function local, Eduardo A . Bustamante López, 2015/04/17
Re: [Help-bash] make function local, Chet Ramey, 2015/04/19
Re: [Help-bash] make function local, Peng Yu, 2015/04/19
Re: [Help-bash] make function local, Chet Ramey, 2015/04/20
Re: [Help-bash] make function local, Peng Yu, 2015/04/20