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


Groups > gnu.bash.bug > #15261

Re: x[

Path csiph.com!goblin2!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From Clint Hepner <clint.hepner@gmail.com>
Newsgroups gnu.bash.bug
Subject Re: x[
Date Mon, 29 Jul 2019 13:01:35 -0400
Lines 26
Approved bug-bash@gnu.org
Message-ID <mailman.161.1564419701.1985.bug-bash@gnu.org> (permalink)
References <CAAZkfoK2hYq_qSkdKYc1on=+V4VEBgpgZW96sYNZwC+AMw7iTw@mail.gmail.com> <9EA25AF1-6D80-456A-81FA-6D908072E624@gmail.com>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding quoted-printable
X-Trace usenet.stanford.edu 1564419702 21122 209.51.188.17 (29 Jul 2019 17:01:42 GMT)
X-Complaints-To action@cs.stanford.edu
Cc bug-bash <bug-bash@gnu.org>
To Isabella Bosia <izaberina@gmail.com>
Envelope-to bug-bash@gnu.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=y0ZRTEDYh0feJH7zR4Lzu2xRwlfUKK6jbm4FUJl8ey8=; b=OG5hdJLwvXuxfSMudgpFLxv1Yt39SSMEFYW0nR5oPqk9SLLkAnCM4/II/PZhLWacyY FKhw5RdzX3UftRXbJ5oPQ14uxmmVqjAeLIBWzyPnW6hz+PbKiVv73XPfR2wPAlEWMNQO GjafeFzpqhvVfcveKy7F7SaQT+KpQxKn59RiUactsAr3v9SaZoBRItLz7eheKoBQK1ii Lq0dMYxYEQnP1BBfAkR7RI4PXg6dzAL9x4AGCWzkvFcfZk1/VPhfnthHPl2aDVLEp966 LnCJJnMcjjX5W/tPhVYH1e3eNvGDvbS13qTjbAR7WuM1h3ai2cgYbXILtphXfCabCakT GNJg==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=y0ZRTEDYh0feJH7zR4Lzu2xRwlfUKK6jbm4FUJl8ey8=; b=Lt23g71zBPwWMr0ZD8bp/eawh+raq4q/xFNhPx1dNd80KO2VbaViEgVYYYf8SJHDXC OkISGDV5dHcjvC/Qndicn/j7G8V4AKJzsyiWeBy36cglqEKrj9r+XbcOddZG0Y+5CXZz jI3XpDxWaSFG/NjNTYO+ita+4cpFB5j5uqy8DoW2qfEtiIp+oTVISGVWEY7aTSdmyPDc 9W3UR5XhARl5wfOB278xM5P/waSpGZaVxcZ7yEWMwYHRfqgqQt0Qkr2dvKA4d/AdN58G 76dZk/u0K3XTQFEOtDCYHGJ3dJbAXb3xscp1dHN11jXB76U9dvAm2MfSnf9TJOhq+dzc cn1g==
X-Gm-Message-State APjAAAUCIvnJaO6ZriZ32KsbJf5HDAyEINM5CLv+8A5JtnRU6Ef9G5L7 EezvDEQ3PV5Pk2hGuxTli5o=
X-Google-Smtp-Source APXvYqyKLZkhKfOX0kHz4I+CaY/SxDubotMV/oRsjlMR57JF47X8qoOj1ytWGlXG4jvD/jfPRvVTTA==
X-Received by 2002:a6b:641a:: with SMTP id t26mr17282805iog.3.1564419696943; Mon, 29 Jul 2019 10:01:36 -0700 (PDT)
In-Reply-To <CAAZkfoK2hYq_qSkdKYc1on=+V4VEBgpgZW96sYNZwC+AMw7iTw@mail.gmail.com>
X-Mailer Apple Mail (2.3445.104.11)
X-detected-operating-system by eggs.gnu.org: Genre and OS details not recognized.
X-Received-From 2607:f8b0:4864:20::d36
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 <9EA25AF1-6D80-456A-81FA-6D908072E624@gmail.com>
X-Mailman-Original-References <CAAZkfoK2hYq_qSkdKYc1on=+V4VEBgpgZW96sYNZwC+AMw7iTw@mail.gmail.com>
Xref csiph.com gnu.bash.bug:15261

Show key headers only | View raw



> On 2019 Jul 29 , at 12:55 p, Isabella Bosia <izaberina@gmail.com> wrote:
> 
> haven't really looked into why this happens but x[ seems to trigger some
> funny parser behavior
> 
> x[ newline     should not prompt with PS2
> 
> it can't be defined as a normal sh function, but it can be defined with the
> function keyword
> 
> it can't be called like a normal function, but things like "x[" or \x[ work
> 
> this bug seems old


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.

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


Thread

Re: x[ Clint Hepner <clint.hepner@gmail.com> - 2019-07-29 13:01 -0400

csiph-web