🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #587

problems with !

#587
From: Jeff Sparkes
Date: Thu, 14 Sep 1989 15:42
21 lines
963 bytes
bash-1.03 on a sun4 - sunos4

	I've run into two problems with using ! in non-history mode.
The first is that history expansion takes place even when ! is in quotes,
either single or double.  The second occurs when I have a filename containing
!.  If I escape the !, ~ expansion no longer occurs.

$ ls xx
xx not found
$ echo "!ls"
ls": Event not found.
$ ls ~/lisp/pp.el
/users/cs/staff/jeff1/lisp/pp.el
$ echo ~/lisp/!myinit.el
myinit.el: Event not found.
$ echo ~/lisp/\!myinit.el
~/lisp/!myinit.el
-- 
Jeff Sparkes	jeff1@garfield.mun.edu || uunet!garfield!jeff1

					
Technical Details
Message-ID: <429@stretch.MUN.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!brutus.cs.uiuc.edu!ginosko!uunet!garfield!stretch!jeff1

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!brutus.cs.uiuc.edu!ginosko!uunet!garfield!stretch!jeff1
From: jeff1@stretch.MUN.EDU (Jeff Sparkes)
Newsgroups: gnu.bash.bug
Subject: problems with !
Message-ID: <429@stretch.MUN.EDU>
Date: 14 Sep 89 15:42:39 GMT
Organization: CS Dept., Memorial U. of Newfoundland, St. John's
Lines: 21