🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #3

Re: bug in quoting of "!"

#3
From: Chet Ramey
Date: Mon, 02 Nov 1992 13:30
23 lines
1132 bytes
> A)	bash$ echo '\!'
> A)	\!

This is as Posix.2 specifies.

> B)	bash$ echo '!'
> B)	echo 'pwd'
> B)	pwd

This is the result of the csh-style history mechanism, which doesn't
obey the sh quoting semantics.

I have diffs to lib/readline/history.c that inhibit history expansion
within single quotes.  They are emphatically unofficial.  Send mail if
you want them.

Chet

--
``The use of history as therapy means the corruption of history as history.''
	-- Arthur Schlesinger

Chet Ramey, Case Western Reserve University	Internet: chet@po.CWRU.Edu
Technical Details
Message-ID: <9211022330.AA17166.SM@odin.INS.CWRU.Edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!portal!lll-winken!iggy.GW.Vitalink.COM!cs.widener.edu!umn.edu!spool.mu.edu!caen!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!odin.ins.cwru.edu!chet
References: chet@odin.ins.cwru.edu (Chet Ramey)

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!portal!lll-winken!iggy.GW.Vitalink.COM!cs.widener.edu!umn.edu!spool.mu.edu!caen!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!odin.ins.cwru.edu!chet
From: chet@odin.ins.cwru.edu (Chet Ramey)
Newsgroups: gnu.bash.bug
Subject: Re: bug in quoting of "!"
Message-ID: <9211022330.AA17166.SM@odin.INS.CWRU.Edu>
Date: 2 Nov 92 13:30:00 GMT
References: chet@odin.ins.cwru.edu (Chet Ramey)
Sender: gnulists@ai.mit.edu
Reply-To: chet@po.cwru.edu
Distribution: gnu
Organization: Gnus Not Usenet
Lines: 23
Approved: bug-bash@prep.ai.mit.edu