Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15262 > unrolled thread
| Started by | Eli Schwartz <eschwartz@archlinux.org> |
|---|---|
| First post | 2019-07-29 13:09 -0400 |
| Last post | 2019-07-29 13:09 -0400 |
| Articles | 1 — 1 participant |
Back to article view | Back to gnu.bash.bug
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: x[ Eli Schwartz <eschwartz@archlinux.org> - 2019-07-29 13:09 -0400
| From | Eli Schwartz <eschwartz@archlinux.org> |
|---|---|
| Date | 2019-07-29 13:09 -0400 |
| Subject | Re: x[ |
| Message-ID | <mailman.164.1564420184.1985.bug-bash@gnu.org> |
[Multipart message — attachments visible in raw view] — view raw
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
Back to top | Article view | gnu.bash.bug
csiph-web