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 A2C34200C40 for ; Thu, 9 Mar 2017 05:22:43 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id A14D3160B83; Thu, 9 Mar 2017 04:22:43 +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 E98FD160B88 for ; Thu, 9 Mar 2017 05:22:42 +0100 (CET) Received: (qmail 37500 invoked by uid 500); 9 Mar 2017 04:22:42 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 37489 invoked by uid 99); 9 Mar 2017 04:22:42 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Mar 2017 04:22:42 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id A710B186130 for ; Thu, 9 Mar 2017 04:22:41 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.652 X-Spam-Level: X-Spam-Status: No, score=0.652 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Y9nKPxpiXpLn for ; Thu, 9 Mar 2017 04:22:40 +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 3A6845FBA1 for ; Thu, 9 Mar 2017 04:22:40 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 9ADB3E0593 for ; Thu, 9 Mar 2017 04:22:38 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 128A0243AC for ; Thu, 9 Mar 2017 04:22:38 +0000 (UTC) Date: Thu, 9 Mar 2017 04:22:38 +0000 (UTC) From: "Bryan Pendleton (JIRA)" To: derby-dev@db.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DERBY-6925) Bug in derby_common.sh MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 09 Mar 2017 04:22:43 -0000 [ https://issues.apache.org/jira/browse/DERBY-6925?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15902454#comment-15902454 ] Bryan Pendleton commented on DERBY-6925: ---------------------------------------- As of DERBY-3207, derby_common.sh is not directly part of the release. However, the contents of that file are present in the other scripts, e.g., bin/startNetworkServer contains: {code} if [ \( "`expr $SHELL : '.*sh.exe$'`" -gt 0 \) -a \( "$cygwin" = "false" \) ]; then LOCALCLASSPATH=`echo $LOCALCLASSPATH | sed -E 's/([\d\w]*):([\d\w]*)/\1;\2/g'` fi {code} The Derby build tools construct the release version of the Unix scripts in the bin directory by including the contents of the derby_common.sh script inside the containing scripts, that is what was done by DERBY-3207. I still don't understand what the particular problem is with quotes on your system, nor do I understand what you think would be an improvement to these scripts. Please clarify, if you can. > Bug in derby_common.sh > ---------------------- > > Key: DERBY-6925 > URL: https://issues.apache.org/jira/browse/DERBY-6925 > Project: Derby > Issue Type: Bug > Reporter: Eli Barzilay > Priority: Minor > Original Estimate: 1h > Remaining Estimate: 1h > > At the end of the `derby_common.sh` file, as I currently see in the GH > mirror: > https://github.com/apache/derby/blob/trunk/bin/templates/derby_common.sh#L166 > there is an unquoted use of $SHELL which should really be quoted. We > have run into this bug trying to start the server in a docker image, > with a setup that has no SHELL variable, which results in a syntax > error. -- This message was sent by Atlassian JIRA (v6.3.15#6346)