[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 16:06:37 -0500 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
Well, if your scripts are so simple, why use local functions at all? You're
claiming we invent stuff to make your examples fail, but I don't know anyone
that writes such complex code for very simple tasks that can even be done
without functions. So, the burden to prove these convoluted approaches are
justified is on *your* side.
The "local" function you provided is clearly a fake case. Provide real world
cases, so that we can make real world criticism and take decisions that affect
people writing actual useful code.
If that's the complete script, why unset the functions? Security? That's the
whole script, what other functions could there be that are affected by a left
over function name in the script's global namespace?
--
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, 2015/04/17
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 <=
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
Re: [Help-bash] make function local, Greg Wooledge, 2015/04/20
Re: [Help-bash] make function local, Chet Ramey, 2015/04/20