[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: expr ... and `expr ...` return different results on QNX 4.2.5
From: |
Pavel Roskin |
Subject: |
Re: expr ... and `expr ...` return different results on QNX 4.2.5 |
Date: |
Thu, 30 Nov 2000 16:28:13 -0500 (EST) |
Hello!
> Yes. I wouldn't bother doing that. Just tell them to get a working
> shell. You have to draw the line somewhere.
That's correct. We cannot support command.com anyway :-)
> If you want to quote chapter and verse, you can tell them that
> POSIX.2-1992 section 3.9.1 page 136 lines 755-759 says that x=`FOO`
> must yield FOO's exit status. Any shell that doesn't do this is
> seriously broken.
That's not the autoconf's way. The autoconf's way is to find a better
shell on that system, e.g. /bin/sh5 or /bin/ksh. If it fails then it's Ok
for autoconf to fail.
But I still hope to work around those issues with QNX 4.25 somehow.
How about this:
ac_output=`command || echo "===ERROR==="`
case $ac_output in
*===ERROR===)
AC_MSG_ERROR([command failed]) ;;
*) ;;
esac
Regards,
Pavel Roskin
Re: expr ... and `expr ...` return different results on QNX 4.2.5, Akim Demaille, 2000/11/30