Jim Meyering <j...@meyering.net> writes:

> I wonder if there is some way to write/use a command-not-found
> handler to automate the error-prone "add-$EXE-suffix" at run-time.

We could create a macro in init.sh that needs to be used when invoking a
program, but I think it would be as error-prone as $EXEEXT (it needs to
be used at all places that invokes a built program, just like $EXEEXT)
only uglier -- after all, use of $EXEEXT is quite widespread and well
understood.

> If at all possible, I would like to avoid the invasive change
> of adding the $EXE suffix to every just-built-binary invocation
> in every test script.

If it is possible to portable, it would be nice.  But I don't think the
cost of supporting $EXEEXT is that extreme -- the problem is easy to
detect by doing builds using MinGW/Wine which I'm already doing.

/Simon


Reply via email to