Date: Thu, 3 Sep 2009 04:14:56 +0000 (GMT) From: jerry M <jerrry94087@yahoo.com> To: freebsd-questions@freebsd.org Subject: Why /bin/sh doesn't like the line: if test "x$my_var" == "xyes"; then Message-ID: <423199.64505.qm@web110716.mail.gq1.yahoo.com>
next in thread | raw e-mail | index | archive | help
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? Where is it taken from? --version, -v, -version don't ever print version I guess due to FreeBSD policy of not versioning individual utilities.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?423199.64505.qm>