home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / gnu / bash / bug / 505 < prev    next >
Encoding:
Text File  |  1992-07-26  |  1.1 KB  |  36 lines

  1. Newsgroups: gnu.bash.bug
  2. Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!mips!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!odin.ins.cwru.edu!chet
  3. From: chet@odin.ins.cwru.edu (Chet Ramey)
  4. Subject: Re: ! history expansion problems
  5. Message-ID: <9207271150.AA08228.SM@odin.INS.CWRU.Edu>
  6. Sender: gnulists@ai.mit.edu
  7. Reply-To: chet@po.cwru.edu
  8. Organization: GNUs Not Usenet
  9. References: chet@odin.ins.cwru.edu (Chet Ramey)
  10. Distribution: gnu
  11. Date: Mon, 27 Jul 1992 03:50:48 GMT
  12. Approved: bug-bash@prep.ai.mit.edu
  13. Lines: 21
  14.  
  15. > How can I disable csh-style history expansion within shell character classes?
  16. > For example:
  17. >     cp ../skeleton/.[!.]* .
  18. > to set up a user's account.
  19. > As ! here indicates inversion of the character class, I think it
  20. > should be added to the set of special cases where it is not expanded
  21. > as history.
  22.  
  23. You can use ^ in place of ! to indicate character class inversion.
  24.  
  25. Chet
  26.  
  27. --
  28. ``The use of history as therapy means the corruption of history as history.''
  29.     -- Arthur Schlesinger
  30.  
  31. Chet Ramey, Case Western Reserve University    Internet: chet@po.CWRU.Edu
  32.  
  33.