[gnu.bash.bug] Incomplete history handling.

jkh@pcsbst.UUCP (jkh) (07/20/89)

Grumble. One of the things I really like about bash is that it's
*almost* csh compatible. I've grown far too used to !! and ^foo^bar
type constructs to go back to any sh-like shell at this point, so
bash's approach seems good (I've always written my scripts in bourne
shell, so that's not a problem). However, there are a few problems:

bash$ echo foo bar baz
foo bar baz
bash$ !!
echo foo bar baz
foo bar baz
bash$ !ec
echo foo bar baz
foo bar baz
bash$ !?foo?
echo foo bar baz
foo bar baz
bash$ !!:s/foo/feh
echo feh bar baz
feh bar baz
bash$ !ech:s/foo/feh
:s/foo/feh: Event not found.

The last case should work, if we're really looking for csh compatability.

Also, !..:gs/foo/bar does not work either (global substitute):

bash$ echo foo bar baz
foo bar baz
bash$ !!:gs/ba/bo
echo foo bar baz:gs/ba/bo
foo bar baz:gs/ba/bo
bash$

Definately not what the doctor ordered.


					Jordan

-- 
--------
				Jordan Hubbard
				PCS Computer Systeme GmbH
				West Germany
	UUCP:			{uunet,decwrl}!pyramid!pcsbst!jkh
	ARPA:			jkh@violet.berkeley.edu

Hey! Leave that alone!