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


Groups > gnu.bash.bug > #11612

! in PS1 in posix mode

From isabella parakiss <izaberina@gmail.com>
Newsgroups gnu.bash.bug
Subject ! in PS1 in posix mode
Date 2015-10-11 07:37 +0200
Message-ID <mailman.78.1444541864.7904.bug-bash@gnu.org> (permalink)

Show all headers | View raw


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?


---
xoxo iza

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


Thread

! in PS1 in posix mode isabella parakiss <izaberina@gmail.com> - 2015-10-11 07:37 +0200

csiph-web