Path: csiph.com!goblin2!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: Clint Hepner 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: References: <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 To: Isabella Bosia 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: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <9EA25AF1-6D80-456A-81FA-6D908072E624@gmail.com> X-Mailman-Original-References: Xref: csiph.com gnu.bash.bug:15261 > On 2019 Jul 29 , at 12:55 p, Isabella Bosia = wrote: >=20 > haven't really looked into why this happens but x[ seems to trigger = some > funny parser behavior >=20 > x[ newline should not prompt with PS2 >=20 > it can't be defined as a normal sh function, but it can be defined = with the > function keyword >=20 > it can't be called like a normal function, but things like "x[" or \x[ = work >=20 > 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.=