home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / bugs / 4bsd / 236 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  1.7 KB

  1. Xref: sparky comp.bugs.4bsd:236 comp.bugs.sys5:148 comp.bugs.misc:171 comp.sources.bugs:301
  2. Path: sparky!uunet!ispi!jbayer
  3. From: jbayer@ispi.COM (Jonathan Bayer)
  4. Newsgroups: comp.bugs.4bsd,comp.bugs.sys5,comp.bugs.misc,comp.sources.bugs
  5. Subject: Re: A serious bug in unix2dos/dos2unix
  6. Message-ID: <2527@ispi.COM>
  7. Date: 14 Dec 92 18:59:27 GMT
  8. References: <1992Dec12.224109.15621@cs.mcgill.ca>
  9. Followup-To: comp.bugs.4bsd
  10. Organization: Intelligent Software Products, Inc.
  11. Lines: 31
  12.  
  13. haiying@cs.mcgill.ca (Haiying ZHANG) writes:
  14.  
  15.  
  16. >   I came across this bug a while ago. This has to do with using wild
  17. >card in file names with unix2dos/dos2unix.
  18.  
  19. >   If you use a wild card in the file name, be it a single * or a ?
  20. >embedded in a pattern, these two handy utilities will wipe out your
  21. >entire current directory with the exception of the first file. It will
  22. >set all the rest of the file to size 0. 
  23.  
  24. >   Although the man page does mention anything about wild card in
  25. >filename making one believe that it is not supported, it should not in
  26. >any case cause serious damaging to your files. While I am at it, these
  27. >two programs look like a recompile of its DOS version. It should have
  28. >provided more - options such as -Rfp etc. as in cp. 
  29.  
  30.  
  31. First, what system are you running on?  Second, what are you trying to do?
  32. On a Sun system the dos2unix command is designed to operate on ONE file only,
  33. sending the output to the second file specification.  The wild cards are
  34. expanded by the shell, and all the program sees is a long list of filenames.
  35.  
  36. It appears that you may be using it improperly.
  37.  
  38.  
  39. JB
  40. -- 
  41. Jonathan Bayer        Intelligent Software Products, Inc.
  42. (908) 248-1853        37 Winthrop Rd. 
  43. jbayer@ispi.COM        Edison, NJ   08817
  44.