From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Assaf Gordon Newsgroups: gmane.emacs.bugs Subject: bug#18612: [platform-testers] Emacs pretest 24.3.94 Date: Thu, 02 Oct 2014 18:06:17 -0400 Message-ID: <542DCC59.3040803@gmail.com> References: <542DA601.9090709@gmail.com> <83oatui79m.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1412287647 5042 80.91.229.3 (2 Oct 2014 22:07:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Oct 2014 22:07:27 +0000 (UTC) Cc: 18612@debbugs.gnu.org To: Dani Moncayo , Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 03 00:07:19 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XZoWs-0003uq-Jb for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Oct 2014 00:07:18 +0200 Original-Received: from localhost ([::1]:36593 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZoWr-0002N6-RO for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Oct 2014 18:07:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47037) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZoWj-0002Mx-13 for bug-gnu-emacs@gnu.org; Thu, 02 Oct 2014 18:07:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZoWd-00007Z-3q for bug-gnu-emacs@gnu.org; Thu, 02 Oct 2014 18:07:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39669) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZoWd-00007V-07 for bug-gnu-emacs@gnu.org; Thu, 02 Oct 2014 18:07:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XZoWc-0008Fh-DV for bug-gnu-emacs@gnu.org; Thu, 02 Oct 2014 18:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Assaf Gordon Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Oct 2014 22:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18612 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18612-submit@debbugs.gnu.org id=B18612.141228757731659 (code B ref 18612); Thu, 02 Oct 2014 22:07:02 +0000 Original-Received: (at 18612) by debbugs.gnu.org; 2 Oct 2014 22:06:17 +0000 Original-Received: from localhost ([127.0.0.1]:59466 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZoVt-0008EZ-6M for submit@debbugs.gnu.org; Thu, 02 Oct 2014 18:06:17 -0400 Original-Received: from mail-qa0-f54.google.com ([209.85.216.54]:38737) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZoVq-0008EQ-7F for 18612@debbugs.gnu.org; Thu, 02 Oct 2014 18:06:15 -0400 Original-Received: by mail-qa0-f54.google.com with SMTP id i13so32795qae.13 for <18612@debbugs.gnu.org>; Thu, 02 Oct 2014 15:06:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=kOF2zM11/puessaPkbiDdwVHFVKyJgdTGHyZib8KL34=; b=eGT7qjZq8npiUTKBuhjRhH4EOxzVvXEiQZ/WDAyIP54H2VWsl8TNN8tZbqY1WIpoQN mUopCSwjiWsI3pB83oPTtzlE3+db/Q6fDikeU2m7eEM3VENmOQbABlz1cyQb41ydSV1D XJ9rOqCoc2iYbdBawnw1IBDREvhQK+fj0EBx3LYaa3TwBLMkmJPbNGerCGLOnLvFNp2D 9bjKN39AojDIZSITlfcOnKx/Ziv5atOSJT6Irt5x56cvNCAUhN/blRzZNevJ2a4Psz7N VNU7aRTdvvrabM62DaRPx69zzzNu142W9mcr3fDk6AcAky0qek15WVQ7669pZFSMG9p+ H04A== X-Received: by 10.224.36.198 with SMTP id u6mr2342535qad.51.1412287573444; Thu, 02 Oct 2014 15:06:13 -0700 (PDT) Original-Received: from disco.wi.mit.edu ([18.4.1.144]) by mx.google.com with ESMTPSA id d32sm4250135qga.37.2014.10.02.15.06.12 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Oct 2014 15:06:12 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:94053 Archived-At: On 10/02/2014 05:07 PM, Dani Moncayo wrote: > On Thu, Oct 2, 2014 at 10:09 PM, Glenn Morris wrote: >> >> But other platforms may still try to parse (?) those lines, even if they >> don't execute them. Presumably that explains: <...> > To find out if that's the case here, Assaf could run the configure > script again, with this patch applied: The patch itself was not enough, because it still contains the offending lines. However, I think I managed to reduce the case to this: === MINIX R3.3.0 === $ sh -c 'echo ${a:0:1}' sh: Syntax error: Bad substitution $ sh -c 'true && echo ${a:0:1}' sh: Syntax error: Bad substitution $ sh -c 'false && echo ${a:0:1}' sh: Syntax error: Bad substitution === Debian 7.6 === $ dash -c 'echo ${a:0:1}' dash: 1: Bad substitution $ dash -c 'true && echo ${a:0:1}' dash: 1: Bad substitution $ dash -c 'false && echo ${a:0:1}' (no error printed) === NetBSD 6.1.4 ==== $ sh -c 'echo ${a:0:1}' sh: Syntax error: Bad substitution $ sh -c 'true && echo ${a:0:1}' sh: Syntax error: Bad substitution $ sh -c 'false && echo ${a:0:1}' sh: Syntax error: Bad substitution but: $ ksh -c 'echo ${a:0:1}' ksh: : bad substitution $ ksh -c 'true && echo ${a:0:1}' ksh: : bad substitution $ ksh -c 'false && echo ${a:0:1}' (no error printed) ==== The "offending" system is MINIX R3.3.0 (which isn't officially supported). It is supposed to be MINIX kernel + NetBSD user-space, so I'm not quite sure why "./configure" on NetBSD works while on MINIX it doesn't. (something to do with re-exec as "ksh" ? though MINIX does have "/bin/ksh" ). In any case, I think the examples above demonstrate that MINIX's default shell does parse the shell statements regardless of execution or not, unlike 'dash' or 'ksh'. I don't know if this is POSIX-compliant-behaviour or not. Regards, - Assaf