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


Groups > gnu.bash.bug > #11642

Re: ! in PS1 in posix mode

From Linda Walsh <bash@tlinx.org>
Newsgroups gnu.bash.bug
Subject Re: ! in PS1 in posix mode
Date 2015-10-12 22:46 -0700
Message-ID <mailman.202.1444715244.7904.bug-bash@gnu.org> (permalink)
References (1 earlier) <561A6877.4010709@case.edu> <561BDFBA.4020304@tlinx.org> <561C029E.8060703@case.edu> <561C3C22.3010900@tlinx.org> <561C4F2D.10505@case.edu>

Show all headers | View raw



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* behaviors, not prescribe or proscribe behaviors.
> 
> Do you realize that this prompt expansion was in ksh since at least
> ksh-86?  ksh-88 was one of the Posix base documents, and that
> expansion was estabished behavior by the time Posix started its work.
---
Haven't used ksh for some time....I 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...

For stuff I typed last week or earlier, I'd use grep on the hist files.

I thought to have all my hist files merged and deduped... but the resulting
master hist file -- .. I used it for a while (somewhat accidently  as it was
renamed to a normal hist file @ around 2-3M in length).

command response was quite slow (took a while to figure out it was
the history updating every command that caused a delay of about
2-3 seconds/command).  
I don't think I have all the kinks in the combining routines worked
out yet either... but certainly wouldn't want to switch to the newest
master @ 6.4M until history updating is sped up a bit... (I'm not
holding my break... at least I can still browse/grep it by tty#)...

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


Thread

Re: ! in PS1 in posix mode Linda Walsh <bash@tlinx.org> - 2015-10-12 22:46 -0700

csiph-web