From owner-freebsd-questions@FreeBSD.ORG Thu Sep 3 04:41:37 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 388FD106566C for ; Thu, 3 Sep 2009 04:41:37 +0000 (UTC) (envelope-from jerrry94087@yahoo.com) Received: from web110716.mail.gq1.yahoo.com (web110716.mail.gq1.yahoo.com [67.195.13.223]) by mx1.freebsd.org (Postfix) with SMTP id 09B8D8FC08 for ; Thu, 3 Sep 2009 04:41:36 +0000 (UTC) Received: (qmail 64970 invoked by uid 60001); 3 Sep 2009 04:14:56 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1251951296; bh=FqY+WcBffoeCLhKpS6GEpA8hfzXGavwYLD+sYZxxIeI=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=LoVK79hUt4/W/OQKb0cPyxNmfYZR7/OsfnHKDoMRXTuOFZd9NkxYMy47ititeOZBCDWe1MLXOFxRxBhjfOqtkicFqz2LCHoBv8d2SlAHHZrr2ZMlOLIif2a87wgdwexBAZxGsaE14VTUNAP6WJofjp+oiw3ShX8+1/MqqPsEXGU= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=l0dI0p0iEImCP6skRLqD3jmG49wze+oZWC9EiEbZe+SzQNPpbuSUsafLVtSo4kZZGLF53Babu9YTnKaWC6X46Td8Lu1ily03E1h+2l+VTj51AOtbPcpIWla+We5jG/dmw/c9/5R+0pfrHFAl3bqOOCBn+e1Q1JprB3LOmaO2YdA=; Message-ID: <423199.64505.qm@web110716.mail.gq1.yahoo.com> X-YMail-OSG: zOZM7RMVM1nxKLlFRddt7Pq3X7GnO5NK7Z87LUlkrmVyNjm6QJY2TxGO1V1_z6OUPuRvrot_qEMvBlL.vcRmj6XN7iGMjEGrkCFUX6BQsR2eWC8tpI7D9m3sTKFlrsfVQYcirlkqN1UhpiFrDMjNiaNnDplmwIg.us8UeHFBliyIW0nOgAdpQxICiNfCqjVvxK1FLF1.MXbefnf3Jw-- Received: from [24.6.221.126] by web110716.mail.gq1.yahoo.com via HTTP; Thu, 03 Sep 2009 04:14:56 GMT X-Mailer: YahooMailClassic/6.1.2 YahooMailWebService/0.7.338.2 Date: Thu, 3 Sep 2009 04:14:56 +0000 (GMT) From: jerry M To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Why /bin/sh doesn't like the line: if test "x$my_var" == "xyes"; then X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Sep 2009 04:41:37 -0000 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.