Re: ! in PS1 in posix mode

2015-10-15 Thread Bob Proulx
Linda Walsh wrote: > Haven't used ksh for some timeI thought the '!' stuff came > from csh? It seemed so pointless, since having to look up > things by command number I thought, was way too much work... searching > via a string in the line seemed so much faster... You are not thinking about t

Re: ! in PS1 in posix mode

2015-10-12 Thread Linda Walsh
Chet Ramey wrote: On 10/12/15 7:02 PM, Linda Walsh wrote: It happens in posix mode. --- How lame! It's a '!' in a quoted string. Another example of posix braindeath -- how long before people realize that the thing branded 'posix' now isn't the real posix that was started to *describe*

Re: ! in PS1 in posix mode

2015-10-12 Thread Chet Ramey
On 10/12/15 7:02 PM, Linda Walsh wrote: >> It happens in posix mode. > --- > How lame! It's a '!' in a quoted string. Another example > of posix braindeath -- how long before people realize that the > thing branded 'posix' now isn't the real posix that was started > to *describe* behaviors,

Re: ! in PS1 in posix mode

2015-10-12 Thread Linda Walsh
Chet Ramey wrote: On 10/12/15 12:28 PM, Linda Walsh wrote: Chet Ramey wrote: On 10/11/15 1:37 AM, isabella parakiss wrote: In posix mode, bash replaces ! in my PS1 with the history number. http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_05_03 "The shell sh

Re: ! in PS1 in posix mode

2015-10-12 Thread Chet Ramey
On 10/12/15 12:28 PM, Linda Walsh wrote: > > > Chet Ramey wrote: >> On 10/11/15 1:37 AM, isabella parakiss wrote: >>> In posix mode, bash replaces ! in my PS1 with the history number. >> >> http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_05_03 >> >> >> "The shell s

Re: ! in PS1 in posix mode

2015-10-12 Thread isabella parakiss
On 10/12/15, Greg Wooledge wrote: > On Mon, Oct 12, 2015 at 09:28:42AM -0700, Linda Walsh wrote: >> Chet Ramey wrote: >> >http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_05_03 >> > >> >"The shell shall replace each instance of the character '!' in PS1 with >> >the h

Re: ! in PS1 in posix mode

2015-10-12 Thread Greg Wooledge
On Mon, Oct 12, 2015 at 09:28:42AM -0700, Linda Walsh wrote: > Chet Ramey wrote: > >http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_05_03 > > > >"The shell shall replace each instance of the character '!' in PS1 with > >the history file number of the next command to

Re: ! in PS1 in posix mode

2015-10-12 Thread Linda Walsh
Chet Ramey wrote: On 10/11/15 1:37 AM, isabella parakiss wrote: In posix mode, bash replaces ! in my PS1 with the history number. http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_05_03 "The shell shall replace each instance of the character '!' in PS1 with the

Re: ! in PS1 in posix mode

2015-10-11 Thread Chet Ramey
On 10/11/15 2:22 AM, isabella parakiss wrote: > On 10/11/15, isabella parakiss 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... inten

Re: ! in PS1 in posix mode

2015-10-11 Thread Chet Ramey
On 10/11/15 1:37 AM, isabella parakiss wrote: > In posix mode, bash replaces ! in my PS1 with the history number. http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_05_03 "The shell shall replace each instance of the character '!' in PS1 with the history file number o

Re: ! in PS1 in posix mode

2015-10-10 Thread isabella parakiss
On 10/11/15, isabella parakiss 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://tisw

! in PS1 in posix mode

2015-10-10 Thread isabella parakiss
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