[BusyBox 0000892]: dos2unix/unix2dos options are wrong

bugs at busybox.net bugs at busybox.net
Thu Jun 1 18:33:11 UTC 2006


The following issue has been CONFIRMED. 
====================================================================== 
http://busybox.net/bugs/view.php?id=892 
====================================================================== 
Reported By:                chris_brand
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   892
Category:                   Documentation
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     confirmed
====================================================================== 
Date Submitted:             06-01-2006 10:41 PDT
Last Modified:              06-01-2006 11:33 PDT
====================================================================== 
Summary:                    dos2unix/unix2dos options are wrong
Description: 
This is what the documentation online at
http://www.busybox.net/downloads/BusyBox.html says :
dos2unix

dos2unix [option] [FILE] 

Converts FILE from dos format to unix format. When no option is given, the
input is converted to the opposite output format. When no file is given,
uses stdin for input and stdout for output.

Options:

        -u      output will be in UNIX format
        -d      output will be in DOS format

unix2dos

unix2dos [option] [FILE] 

Converts FILE from unix format to dos format. When no option is given, the
input is converted to the opposite output format. When no file is given,
uses stdin for input and stdout for output. 

Options:        -u      output will be in UNIX format
        -d      output will be in DOS format

In fact it seems to be the other way round (from my experiments). i.e. -d
gives unix line endings and -u gives dos ones. It's probably a bug, but
easier to change the docs than the code.

======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
has duplicate       0000893 dos2unix does the opposite when called ...
====================================================================== 

---------------------------------------------------------------------- 
 bernhardf - 06-01-06 11:33  
---------------------------------------------------------------------- 
Should be fixed as of r15261.

Please let me know if it's ok now and thanks for pointing that out. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-01-06 10:41  chris_brand    New Issue                                    
06-01-06 10:41  chris_brand    Status                   new => assigned     
06-01-06 10:41  chris_brand    Assigned To               => BusyBox         
06-01-06 11:32  bernhardf      Relationship added       has duplicate 0000893
06-01-06 11:33  bernhardf      Note Added: 0001391                          
06-01-06 11:33  bernhardf      Status                   assigned => confirmed
======================================================================




More information about the busybox-cvs mailing list