This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: PR other/17637: Top level configure doesn't support symlinks


"H. J. Lu" <hjl@lucon.org> writes:

> -      if test x${SHELL} != x && test -f ${SHELL} ; then
> +      if test x${SHELL} != x && test -e ${SHELL} ; then

test -e is not highly portable.  test -r is better.

But test -f works on symlinks anyhow, so there must be some other
problem.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]