On 20. 4. 2015 3:16, Greg Jung wrote: > I think the answer is, all those configures you ran you thought were > testing stuff, weren't. Unless you set PATH_SEPARATOR=":". > > No that test was just too complicated and it would only succeed > in the (unlikely) event that your path_separator was ";". Nowhere > does it set path_separator to ':'since =: is not equivalent to =':'. > Earlier configures had a more pedestrian approach. The problem is the > AC_INIT macro, I believe.
I don't think quoting makes any difference, at least not according to my tests.
Regardless of what I set as PATH_SEPARATOR before running configure, I get
correct results. Testing like this:
$ cat configure; echo ---end---
#!/bin/sh
echo PATH_SEPARATOR=$PATH_SEPARATOR
# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
PATH_SEPARATOR=:
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
PATH_SEPARATOR=';'
}
fi
echo PATH_SEPARATOR=$PATH_SEPARATOR
---end---
$ echo $PATH_SEPARATOR
$ ./configure
PATH_SEPARATOR=
PATH_SEPARATOR=:
$ PATH_SEPARATOR=':' ./configure
PATH_SEPARATOR=:
PATH_SEPARATOR=:
$ PATH_SEPARATOR=';' ./configure
PATH_SEPARATOR=;
PATH_SEPARATOR=;
Can you run the following commands? Maybe their outputs will reveal something.
$ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :); echo $?
bash: sh: command not found
127
$ (PATH='/bin:/bin'; FPATH=$PATH; sh -c :); echo $?
0
--
David Macek
smime.p7s
Description: S/MIME Cryptographic Signature
------------------------------------------------------------------------------ BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________ Msys2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/msys2-users
