Re: Why /bin/sh doesn't like the line: if test x$my_var == xyes; then

2009-09-03 Thread Ruben de Groot
On Thu, Sep 03, 2009 at 06:59:38AM +0200, Polytropon typed: What is the version of /bin/sh currently used in 7.2? Where is it taken from? --version, -v, -version don't ever print version I guess due to FreeBSD policy of not versioning individual utilities. FreeBSD's Bourne shell does

Re: Why /bin/sh doesn't like the line: if test x$my_var == xyes; then

2009-09-03 Thread Bertram Scharpf
Hi, Am Donnerstag, 03. Sep 2009, 04:14:56 + schrieb jerry M: configure file got this line and it causes the message: test: xyes: unexpected operator But removing spaces around == or replacing == with = makes it to work. On Linux though this line works fine. As `man test' describes, the

Why /bin/sh doesn't like the line: if test x$my_var == xyes; then

2009-09-02 Thread jerry M
configure file got this line and it causes the message: test: xyes: unexpected operator But removing spaces around == or replacing == with = makes it to work. On Linux though this line works fine. Why spaces around == would cause failure? What is the version of /bin/sh currently used in 7.2?

Re: Why /bin/sh doesn't like the line: if test x$my_var == xyes; then

2009-09-02 Thread Polytropon
On Thu, 3 Sep 2009 04:14:56 + (GMT), jerry M jerrry94...@yahoo.com wrote: configure file got this line and it causes the message: test: xyes: unexpected operator But removing spaces around == or replacing == with = makes it to work. Maybe those files are not intended to run on FreeBSD's

Re: Why /bin/sh doesn't like the line: if test x$my_var == xyes; then

2009-09-02 Thread Dan Nelson
In the last episode (Sep 03), jerry M said: configure file got this line and it causes the message: test: xyes: unexpected operator But removing spaces around == or replacing == with = makes it to work. On Linux though this line works fine. Why spaces around == would cause failure? What