🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #230

Re: ! history expansion problems

#230
From: Chet Ramey
Date: Mon, 27 Jul 1992 03:50
20 lines
1124 bytes
> How can I disable csh-style history expansion within shell character classes?
> For example:
> 
> 	cp ../skeleton/.[!.]* .
> 
> to set up a user's account.
> 
> As ! here indicates inversion of the character class, I think it
> should be added to the set of special cases where it is not expanded
> as history.

You can use ^ in place of ! to indicate character class inversion.

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: <9207271150.AA08228.SM@odin.INS.CWRU.Edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!darwin.sura.net!mips!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
Newsgroups: gnu.bash.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!darwin.sura.net!mips!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!odin.ins.cwru.edu!chet
From: chet@odin.ins.cwru.edu (Chet Ramey)
Subject: Re: ! history expansion problems
Message-ID: <9207271150.AA08228.SM@odin.INS.CWRU.Edu>
Sender: gnulists@ai.mit.edu
Reply-To: chet@po.cwru.edu
Organization: GNUs Not Usenet
References: chet@odin.ins.cwru.edu (Chet Ramey)
Distribution: gnu
Date: Mon, 27 Jul 1992 03:50:48 GMT
Approved: bug-bash@prep.ai.mit.edu
Lines: 21