home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / shell / 5323 < prev    next >
Encoding:
Text File  |  1993-01-09  |  1.4 KB  |  32 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!stanford.edu!nntp.Stanford.EDU!dkeisen
  3. From: dkeisen@leland.Stanford.EDU (Dave Eisen)
  4. Subject: Re: File Problem.
  5. Message-ID: <1993Jan9.163956.13182@leland.Stanford.EDU>
  6. Sender: news@leland.Stanford.EDU (Mr News)
  7. Organization: Sequoia Peripherals, Inc.
  8. References: <WRASMAN.93Jan8164326@duncan.utkcs> <1993Jan9.005821.20072@cs.sandia.gov>
  9. Distribution: comp
  10. Date: Sat, 9 Jan 93 16:39:56 GMT
  11. Lines: 19
  12.  
  13. In article <1993Jan9.005821.20072@cs.sandia.gov> jhgreen@cs.sandia.gov (Jethro H. Greene) writes:
  14. >In article <WRASMAN.93Jan8164326@duncan.utkcs> wrasman@duncan.utkcs (Mirror Mirror on the wall) writes:
  15. >>I seem to have accidently created a file that starts out with
  16. >>a - . I can't get rm to get rid of it and I can mv to another file
  17. >>name. SO does anyone know how to get rid of a file like this.
  18. >
  19. >The shell thinks that when you type '-', you are giving the command options.
  20.  
  21. The shell has no idea what '-' means, '-' is not a shell
  22. meta-character. So the shell just passes the '-' along
  23. to rm. It is rm that thinks you are giving it options,
  24. not the shell.
  25.  
  26.  
  27. -- 
  28. Dave Eisen                               Sequoia Peripherals: (415) 967-5644
  29. dkeisen@leland.Stanford.EDU              Home:                (415) 321-5154
  30.        There's something in my library to offend everybody. 
  31.           --- Washington Coalition Against Censorship
  32.