bug-bash
[Top][All Lists]
Advanced

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

Re: x[


From: Eli Schwartz
Subject: Re: x[
Date: Mon, 29 Jul 2019 13:09:28 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0

On 7/29/19 1:01 PM, Clint Hepner wrote:
> The ``[`` begins a valid shell pattern, so the parser continues to
> accept input until the closing ``]`` is found. Pathname expansion
> (apparently) does not apply to the first "argument" of the
> ``function`` command.

The initial workaround discovered, was to use

$ function _[ () { echo hello; }; <() _[
hello

The use of <() somehow suppresses the glitch in the same way that
quoting it does. If it were just glob expansion, then why should that be so?

-- 
Eli Schwartz
Arch Linux Bug Wrangler and Trusted User

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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