Can anyone point me in the right direction here please?
if IFS is : then when running sh what should the list be when it sees
for var in /sbin:/usr/sbin:$PATH
and on what does it depend?
Context:
I have been using WINE for some time. As is normal, it has a configure
script generated by autoconf. The documentation for autoconf describes how,
when using AC_PATH_PROG, you should add locations to the path it searches,
which is using : as the separator.
The resulting configure script is flagged as /bin/sh and includes the above
"for clause"
I know that at some point in the past a past version of the configure script
worked "correctly" because my config.cache contains the correct answer. But
currently the script is only using the IFS when expanding the $PATH, so the
first element of the list is /sbin:/usr/sbin:<the first entry in my path>
and it is followed by the other entries in my path.
(This is on Redhat Linux 7.1 with possibly a couple of upgrades in there
somewhere)
Anyone any idea what's going on?
TIA
Bill