bug-bash
[Top][All Lists]
Advanced

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

Re: bash does filename expansion when assigning to array member in compo


From: Chet Ramey
Subject: Re: bash does filename expansion when assigning to array member in compound form
Date: Wed, 29 Aug 2012 16:46:04 -0400

> > > That means you can do things like
> > > 
> > > [{0,1,2,3}]=foo
> > > 
> > > to set the first four elements to the same value

This does work, but only in this context.  It's a hard sell to say that
it should work when using compound assignments and not any other time.

I'm inclined to either disable it for consistency's sake or make it
dependent on the compatibility level.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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