home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / mod.std.unix.v7 / text0090.txt < prev    next >
Encoding:
Internet Message Format  |  1987-06-30  |  873 b 

  1. From: weemba@brahms.berkeley.edu (Matthew P Wiener)
  2. Date: Fri, 24 Oct 86 14:27:50 PDT
  3. Organization: University of California, Berkeley
  4.  
  5. In article <6029@ut-sally.UUCP> Mark Horton writes:
  6. >    Since many commands take names beginning with "-" as flags,
  7. >        file names beginning with "-" don't always work.
  8.  
  9. There's a real easy fix to the current random collection of special
  10. flags that handle filenames beginning with a dash: always interpret
  11. two dashes at the beginning of a command line argument as the name for
  12. the file obtained by eliding the two dashes into one.  Thus
  13.  
  14. % rm --xyz ----xyz
  15.  
  16. would mean remove -xyz ---xyz, etc.  It's completely unambiguous,
  17. until some clown comes up with flags needing two dashes.  Similarly
  18. for ++file with commands using + flags.
  19.  
  20. ucbvax!brahms!weemba    Matthew P Wiener/UCB Math Dept/Berkeley CA 94720
  21.  
  22. Volume-Number: Volume 7, Number 91
  23.  
  24.