Menu

#21 dos2unix breaks with exit 0

v1.0_(example)
open
None
5
2 days ago
5 days ago
No

Dear Erwin,

dos2unix is aborting an operation with exit 0 (success). See the commands below that use the attached file:

$ ./dos2unix oui.20250515.msdos.txt
dos2unix: Binary symbol 0x01 found at line 226939
dos2unix: Skipping binary file oui.20250515.msdos.txt

$ echo $?
0

The problematic line in oui.20250515.msdos.txt is:

P.O^ABox^A17985^AJebel^AAli

The exit should be 1 to avoid any scripts keeping processing after a dos2unix error. I tested this behavior with dos2unix 7.4.1, 7.5.2 and 7.5.3-beta8.

Thanks for your attention.

1 Attachments

Discussion

  • Erwin Waterlander

     
  • Erwin Waterlander

    Hi Joao,

    Thank for reporting the issue. I will soon have a look at this.

    kind regards,

    Erwin

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.