Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15734

Re: unquoted expansion not working (was Re: Not missing, but very hard to see)

Path csiph.com!tncsrv06.tnetconsulting.net!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail
From Robert Elz <kre@munnari.OZ.AU>
Newsgroups gnu.bash.bug
Subject Re: unquoted expansion not working (was Re: Not missing, but very hard to see)
Date Sun, 15 Dec 2019 06:12:53 +0700
Lines 20
Approved bug-bash@gnu.org
Message-ID <mailman.860.1576365213.1979.bug-bash@gnu.org> (permalink)
References <5DF4BDF0.6000402@tlinx.org> <662e2328-f331-c554-afcf-fd3819f6beab@case.edu> <20191206055304.076d6115afa3a4f2a6a21c34@schrader-schulte.de> <5b5064a8-7175-42e7-1eb5-6374dee6c11e@redhat.com> <21761e28-c496-ff67-d7b7-628c9325085f@iki.fi> <9dd3a388-39b1-c059-de99-813f1e411764@case.edu> <5DF2987E.5000309@tlinx.org> <568aeaaa-22b3-c7b9-0e18-a92bef6d2ffb@iki.fi> <5DF2FE31.9070406@tlinx.org> <0ff3a920-94c2-b0c9-5631-0964955657aa@archlinux.org> <5DF3D78B.4090208@tlinx.org> <20191213184213.GO851@eeg.ccf.org> <17197.1576365173@jinx.noi.kre.to>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=iso-8859-1
Content-Transfer-Encoding quoted-printable
X-Trace usenet.stanford.edu 1576365213 25247 209.51.188.17 (14 Dec 2019 23:13:33 GMT)
X-Complaints-To action@cs.stanford.edu
Cc bug-bash@gnu.org
To L A Walsh <bash@tlinx.org>
Envelope-to bug-bash@gnu.org
In-Reply-To <5DF4BDF0.6000402@tlinx.org>
X-detected-operating-system by eggs.gnu.org: GNU/Linux 3.x [generic]
X-Received-From 2001:3c8:9009:181::2
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <17197.1576365173@jinx.noi.kre.to>
X-Mailman-Original-References <5DF4BDF0.6000402@tlinx.org> <662e2328-f331-c554-afcf-fd3819f6beab@case.edu> <20191206055304.076d6115afa3a4f2a6a21c34@schrader-schulte.de> <5b5064a8-7175-42e7-1eb5-6374dee6c11e@redhat.com> <21761e28-c496-ff67-d7b7-628c9325085f@iki.fi> <9dd3a388-39b1-c059-de99-813f1e411764@case.edu> <5DF2987E.5000309@tlinx.org> <568aeaaa-22b3-c7b9-0e18-a92bef6d2ffb@iki.fi> <5DF2FE31.9070406@tlinx.org> <0ff3a920-94c2-b0c9-5631-0964955657aa@archlinux.org> <5DF3D78B.4090208@tlinx.org> <20191213184213.GO851@eeg.ccf.org>
Xref csiph.com gnu.bash.bug:15734

Show key headers only | View raw


    Date:        Sat, 14 Dec 2019 02:48:16 -0800
    From:        L A Walsh <bash@tlinx.org>
    Message-ID:  <5DF4BDF0.6000402@tlinx.org>

  | 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

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: unquoted expansion not working (was Re: Not missing, but very hard to see) Robert Elz <kre@munnari.OZ.AU> - 2019-12-15 06:12 +0700

csiph-web