tech-userlevel archive

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

Re: bin/47597: local and $() don't play well with each other

On Fri, Mar 01, 2013 at 01:12:05PM +0100, wrote:
> On Fri, Mar 01, 2013 at 04:45:19AM +0700, Robert Elz wrote:
> > 
> >   | The problem is that the specification allows both interpretations,
> >   | because there is no definition of "utility"
> > 
> > There is, see 4.20  (it is basically something implemented outside the
> > shell, it can be an executable, or a script, but not a built-in or function)

Just to show how one can split hairs:

I write functions in a shell script. These functions have names that
do not exist as an external thing. They are functions. I extract every
function in a shell file, made executable. These are utilities. Then, my
function in my initial script are "utilities implemented as functions".
Hence, by this very magic manipulation, _without changing a single
character in the file_, they have to change behavior...

        Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C

Home | Main Index | Thread Index | Old Index