Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 29EA3200B3E for ; Wed, 7 Sep 2016 13:54:15 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 286C8160AC1; Wed, 7 Sep 2016 11:54:15 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6A53D160AA3 for ; Wed, 7 Sep 2016 13:54:14 +0200 (CEST) Received: (qmail 82701 invoked by uid 500); 7 Sep 2016 11:54:13 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 82689 invoked by uid 99); 7 Sep 2016 11:54:13 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Sep 2016 11:54:13 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 1FEF21A0D00 for ; Wed, 7 Sep 2016 11:54:13 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.426 X-Spam-Level: X-Spam-Status: No, score=-0.426 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id lZ3iQV_CnDhT for ; Wed, 7 Sep 2016 11:54:11 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 7CD1060CDA for ; Wed, 7 Sep 2016 11:54:10 +0000 (UTC) Received: from asf-bz1-us-mid.priv.apache.org (nat1-us-mid.apache.org [23.253.172.122]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTPS id 888D5E0F3F for ; Wed, 7 Sep 2016 11:54:09 +0000 (UTC) Received: by asf-bz1-us-mid.priv.apache.org (ASF Mail Server at asf-bz1-us-mid.priv.apache.org, from userid 33) id 8DD8660D55; Wed, 7 Sep 2016 11:54:08 +0000 (UTC) From: bugzilla@apache.org To: notifications@ant.apache.org Subject: [Bug 59321] bootstrap/bin/ant script fails when building ant with syntax error, possibly an un-matched quote Date: Wed, 07 Sep 2016 11:54:08 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ant X-Bugzilla-Component: Build Process X-Bugzilla-Version: 1.9.7 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jpenman.smithson@gmail.com X-Bugzilla-Status: NEEDINFO X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: notifications@ant.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bz.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 archived-at: Wed, 07 Sep 2016 11:54:15 -0000 https://bz.apache.org/bugzilla/show_bug.cgi?id=59321 --- Comment #8 from jpenman.smithson@gmail.com --- I've tried the wrapper script from: https://git-wip-us.apache.org/repos/asf?p=ant.git;a=blob_plain;f=src/script/ant;h=043f3fc20f8e26d76761d0efcd9d485078a81cca;hb=ad8630572286b10e845e74988b45028af3094266 ...and the problem still occurred: $ ./ant ./ant: syntax error at line 339: `end of file' unexpected .. tested on: Solaris 10 10/09 s10x_u8wos_08a X86 Solaris 10 6/06 s10x_u2wos_09a X86 Using bash instead of sh on Solaris works however. So the diff 'vs' the ant wrapper script in 1.9.7 is: @@ -1,4 +1,4 @@ -#! /bin/sh +#! /bin/bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with @@ -36,7 +36,7 @@ show_help=true fi # wrap all arguments as "" strings, escape any internal back-slash or double-quote characters - ant_exec_args="$ant_exec_args \"$(printf '%s' "$arg" | sed -e 's@"\|\\@\\\0@g' )\"" + ant_exec_args="$ant_exec_args \"$(printf '%s\n' "$arg" | sed -e 's@"\|\\@\\\0@g' )\"" fi done $ ant -version Apache Ant(TM) version 1.9.7 compiled on April 9 2016 -- You are receiving this mail because: You are the assignee for the bug.