dos2unix breaks with exit 0
Dos2Unix / Unix2Dos - Text file format converters
Brought to you by:
waterlan
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.
Anonymous
Hi Joao,
Thank for reporting the issue. I will soon have a look at this.
kind regards,
Erwin