bug-bash
[Top][All Lists]
Advanced

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

Re: unquoted expansion not working (was Re: Not missing, but very hard t


From: Robert Elz
Subject: Re: unquoted expansion not working (was Re: Not missing, but very hard to see)
Date: Sun, 15 Dec 2019 06:12:53 +0700

    Date:        Sat, 14 Dec 2019 02:48:16 -0800
    From:        L A Walsh <address@hidden>
    Message-ID:  <address@hidden>

  | it could break existing scripts that

Scripts should not be using brace expansion in the first place, it
is useful to save typing for interactive shells, but (whatever quoting
is or is not donw, and whatever ranges are supported)) it is just a lexical
expansion, which can easily be done in the script source, if you want to
assign that 'Z' .. 'a' range to an array, simply list the characters you
want (quoted as needed) and assign them.   That causes less problems long
term, and is more likely to be portable to more shells (even shells that
do brace expansion don't all do it in exactly the same way).

kre




reply via email to

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