Hello,

I noticed, the utility name in error messages is not sdiff for sdiff.

Example with missing files:

$> *s*diff foo bar
diff: foo: No such file or directory
diff: bar: No such file or directory

*Error: Returns wrong util name.
Expectation: sdiff*

This gets even more odd, when comparing

$> mydir/diff foo bar
mydir/diff: foo: No such file or directory
mydir/diff: bar: No such file or directory

$> mydir/sdiff foo bar
diff: foo: No such file or directory
diff: bar: No such file or directory
no path and wrong tool name

Personally I do not think the mydir/ should be part of the error message, but that reasoning is not up to me.

Returning sdiff would be helpful; one thinks the wrong util was used.

For reference, other tool behavior:

$> cmp foo bar
cmp: foo: No such file or directory

$> diff foo bar
diff: foo: No such file or directory
diff: bar: No such file or directory

$> diff foo bar
diff3: missing operand after 'bar'
diff3: Try 'diff3 --help' for more information.
(only util which returns the standard Try --help extra clause.

Best

Gunter

Reply via email to