Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #11613
| Path | csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!news.tele.dk!news.tele.dk!small.news.tele.dk!usenet.stanford.edu!not-for-mail |
|---|---|
| From | isabella parakiss <izaberina@gmail.com> |
| Newsgroups | gnu.bash.bug |
| Subject | Re: ! in PS1 in posix mode |
| Date | Sun, 11 Oct 2015 08:22:32 +0200 |
| Lines | 27 |
| Approved | bug-bash@gnu.org |
| Message-ID | <mailman.79.1444544572.7904.bug-bash@gnu.org> (permalink) |
| References | <CAAZkfoLdwArFQ4_jB5uL9M+Tr8Kv69XbeJiFw3_NS3HPb=4LSQ@mail.gmail.com> |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| X-Trace | usenet.stanford.edu 1444544573 13385 208.118.235.17 (11 Oct 2015 06:22:53 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| To | bug-bash <bug-bash@gnu.org> |
| Envelope-to | bug-bash@gnu.org |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=xN3stYKfZu77E65Qjmi3M3O1AZCzdQV5Ft2KIkrBY48=; b=Ipmwcd08yIG1tZqaXall5TLOeqbPtIekKchusoYsMTIM6ZYUZlPuXiuvUsZ1+3PGC4 M0thq1vyIM35w2BOrbFfpULXnG5H9n78iNc7WgTuV+NrwW/QLKsN6gj8vIoJ7pdq5uG4 1ZNPvXvcNjBhdcNRjw0j1SWxbiGI3l/2lHt7k7yrexvflJJZZ7wx/+AsUJSGd2GL3Utv PGT/9EdvbDWYNdx85ersA/39sbU/KB9N8EdqrU+TZC/xrM4972THbG0olLcQIaPATE1O NVd4PJv3PrghwqXrjV9hjZ9LtOIF2dLahZJbN1Gfhs6zOCplP3GBvqQOAPx6fJZFTFcx Nt1w== |
| X-Received | by 10.107.132.144 with SMTP id o16mr21933839ioi.31.1444544552272; Sat, 10 Oct 2015 23:22:32 -0700 (PDT) |
| In-Reply-To | <CAAZkfoLdwArFQ4_jB5uL9M+Tr8Kv69XbeJiFw3_NS3HPb=4LSQ@mail.gmail.com> |
| X-detected-operating-system | by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). |
| X-Received-From | 2607:f8b0:4001:c06::236 |
| X-BeenThere | bug-bash@gnu.org |
| X-Mailman-Version | 2.1.14 |
| 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 | <http://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> |
| Xref | csiph.com gnu.bash.bug:11613 |
Show key headers only | View raw
On 10/11/15, isabella parakiss <izaberina@gmail.com> wrote:
> In posix mode, bash replaces ! in my PS1 with the history number.
>
> $ PS1=' ! '
> ! set -o posix
> 513 exit
>
> It doesn't happen with any other prompt escape sequence, afaict.
> This looks... intentional? WTF?
>
Ok I've now read this page: http://tiswww.case.edu/php/chet/bash/POSIX
This is awful.
I found out this by enabling set -o posix in my interactive shell. bash
replied with an endless loop of syntax errors because there's this in my
PS1: ${var[a != b]}
Then bash decided to eat up as much cpu and memory it could grab, and I
had to kill-9 it.
I understand that changing the standard in unfeasible but a syntax error
in PS1 shouldn't destroy the shell.
---
xoxo iza
Back to gnu.bash.bug | Previous | Next | Find similar
Re: ! in PS1 in posix mode isabella parakiss <izaberina@gmail.com> - 2015-10-11 08:22 +0200
csiph-web