From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1a6LG1-0006r9-6A for mharc-grub-devel@gnu.org; Tue, 08 Dec 2015 11:36:53 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43640) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6LFz-0006qs-2P for grub-devel@gnu.org; Tue, 08 Dec 2015 11:36:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a6LFu-0001MR-U4 for grub-devel@gnu.org; Tue, 08 Dec 2015 11:36:51 -0500 Received: from mail-lf0-x22e.google.com ([2a00:1450:4010:c07::22e]:34993) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6LFu-0001M8-MU for grub-devel@gnu.org; Tue, 08 Dec 2015 11:36:46 -0500 Received: by lfdl133 with SMTP id l133so16225156lfd.2 for ; Tue, 08 Dec 2015 08:36:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=to:from:subject:message-id:date:user-agent:mime-version :content-type:content-transfer-encoding; bh=W0amf6MAyIR/QdJU2TCQW9wtcmKcM/BAdV9C7jD5jSM=; b=J46Brptxij1lRINKqktG8twVnKLwLJ83iYA6303M+cJ4HkOOE/4A25wmwIRkbPu7Sl FmL32Gek8+LPaHiTsHBV5npBt9Vshy3HWcybV2IJBu216fFEAG9c24cA7ExXyaiZTB/v 0otZrv/tu4veAqh6wPVlNVobgn5ogeREaT8uQkZUx/VrClVWR86ieTG73FyTEUcKHW7S VTqM3eLv0BhYGiOPeZoylzwV9g5ALqViCoW9R43qTr8tyxg1Q+cr0xOGiGkZLW4bqKAj I//HSS99Nk+cz5aOmOKzzGH31ebiwvDGLh6Df1+bdHONvcDRX+oHgcbE98zeLbI/iD1s 6Mtg== X-Received: by 10.25.28.15 with SMTP id c15mr155128lfc.99.1449592605792; Tue, 08 Dec 2015 08:36:45 -0800 (PST) Received: from [192.168.1.41] (ppp91-76-25-247.pppoe.mtu-net.ru. [91.76.25.247]) by smtp.gmail.com with ESMTPSA id zc2sm707507lbb.40.2015.12.08.08.36.44 for (version=TLSv1/SSLv3 cipher=OTHER); Tue, 08 Dec 2015 08:36:44 -0800 (PST) To: The development of GNU GRUB From: Andrei Borzenkov Subject: test command (in-)compatibility Message-ID: <5667071B.90009@gmail.com> Date: Tue, 8 Dec 2015 19:36:43 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::22e X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Dec 2015 16:36:51 -0000 `test' in GRUB implicitly assumes `and' operation between consecutive terms and does not enforce proper syntax like UNIX (bash) `test' does. Both test x y z test x = y z = w result in error in Linux and are silently accepted by GRUB with interpretation test x -a y -a z test ( x = y ) -a ( z = w ) I do not have any strong opinion about it; but simply documenting it needs the least efforts :)