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

  1. From: seismo!mcvax!guido (Guido van Rossum)
  2. Date: Wed, 05 Nov 86 11:24:11 +0100
  3.  
  4. What nobody seems to have noticed about the proposed "solution" to file
  5. names starting with "-" by prefixing another "-", is that it would break
  6. shell file name expansion.  If you have a file "-foo" in your directory,
  7. the call
  8.     $ blurfl *
  9. will see an option "-foo" rather than a file "--foo".  You can't build
  10. a remedy into the shell's file name generation mechanism unless you plan
  11. to fix all software that ever processes an argv list at the same time
  12. (or build knowledge about programs' command conventions into the shell).
  13.  
  14. By the way, prefixing with "./" doesn't work at all times either: the
  15. argument need not be a file.  Ever tried to grep for "-1"?  (Grep has a
  16. solution built in: grep -e).
  17.  
  18.     Guido van Rossum, CWI, Amsterdam <guido@mcvax.uucp>
  19.  
  20. Volume-Number: Volume 8, Number 42
  21.  
  22.