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

  1. From: weemba@brahms.berkeley.edu (Matthew P Wiener)
  2. Date: Fri, 7 Nov 86 03:02:53 PST
  3. Organization: University of California, Berkeley
  4.  
  5. In article <6239@ut-sally.UUCP> seismo!mcvax!guido (Guido van Rossum) writes:
  6. >What nobody seems to have noticed about the proposed "solution" to file
  7. >names starting with "-" by prefixing another "-", is that it would break
  8. >shell file name expansion.
  9.  
  10. Of course, but it is trivial (if ugly) to get around, using backquotes.
  11.  
  12. The reason I am interested is because it came up years ago.  I overloaded
  13. the command line with arguments so that my program could run on our high
  14. speed batch only machine.  And there was one die hard from our batch machine
  15. who liked punctuation marks as his first character.  (The other machine had
  16. a completely different argument convention, so there were different taboo
  17. names.)  And yes, I had strings and post-filename flags in the command line
  18. to boot.
  19.  
  20. If getopt is to be the standard, a -+ flag to turn flags back on should be
  21. added.  Except for -- -+, meaning file -+.  (But then, somebody is going to
  22. break on that by having a null name show up in between a -- and -+ from an
  23. uncareful $variable expansion.  Weee!)
  24.  
  25. ucbvax!brahms!weemba    Matthew P Wiener/UCB Math Dept/Berkeley CA 94720
  26.  
  27. Volume-Number: Volume 8, Number 48
  28.  
  29.