Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] explicitly mention ${name:/pat/repl}



On Nov 9,  5:14am, Daniel Shahaf wrote:
} Subject: Re: [PATCH] explicitly mention ${name:/pat/repl}
}
} Bart Schaefer wrote on Tue, Nov 08, 2016 at 10:10:43 -0800:
} > -The first `tt(/)' may be preceded by a `tt(:)', in which case the match
} > -will only succeed if it matches the entire word.  Note also the
} > +If tt(${)var(name)tt(}) expands to an array value, the replacements act
} > +on each element individually.  Quoting may affect this.  Note also the
} 
} "Quoting may affect this"?  This leaves me wondering what the effect is
} and under what circumstances it happens.

It just means that if you quote the expansion, it won't necessarily
be an array any more.  There are too many ways this could happen to
enumerate them all every time it might apply.



Messages sorted by: Reverse Date, Date, Thread, Author