On 26/07/2025 08:39, Collin Funk wrote:
On Cygwin tests/cksum/md5sum-bsd.sh fails with the following logged:

     + :
     ./tests/cksum/md5sum-bsd.sh: line 73: backslash\is\not\dir\sep: No such 
file or directory
     + remove_tmp_
     + __st=1
     + cleanup_
     [...]
     exit 0

After checking if backslash is a directory seperator, $? is set to 1 on
Cygwin. Since we don't have anything after this 'Exit' is called and
__st is set to $? which is 1. This value of __st is what init.sh
actually calls 'exit' with.

The fix is to reset $? with ':'. Will push in a bit.

That looks like a more general issue.
Shouldn't the (exit $1) in Exit() set $? to $fail ?
Perhaps remove_tmp_() is triggered too early or something?

cheers,
Padraig


Reply via email to