bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] tests/test-xalloc-die.sh: Use $EXEEXT.


From: Simon Josefsson
Subject: Re: [PATCH] tests/test-xalloc-die.sh: Use $EXEEXT.
Date: Thu, 14 Jan 2010 07:56:58 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)

Jim Meyering <address@hidden> 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

[Prev in Thread] Current Thread [Next in Thread]