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: Eric Blake
Subject: Re: [PATCH] tests/test-xalloc-die.sh: Use $EXEEXT.
Date: Wed, 13 Jan 2010 06:24:54 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

According to Jim Meyering on 1/13/2010 3:19 AM:
> I didn't account for that use case.
> 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.
> 
> 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.

mingw and cygwin handle it just fine, but my reading (although not my
experience) seems to imply that BeOS requires the .exe suffix.  Wine is
another case where the suffix is (currently) important.  But I do agree
that it would be much nicer if wine could do things automatically rather
than appending EXE in all of gnulib.

> If the $EXE suffix is not required in that particular case,
> an alternative would be to create a temporary directory, D,
> and populate it with links of the form program ->../.../program.exe
> (or simply copies, if ln isn't an option) and then prepend "D:" to PATH.

Hmm.  It would have to be done with care.  On cygwin, you can't (easily)
create both foo and foo.exe in the same directory, so it would have to be
via separate directories.  And on mingw, there are no symlinks, but copies
of an executable without an .exe suffix are unlikely to be run.

-- 
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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