Return-Path: X-Original-To: apmail-karaf-issues-archive@minotaur.apache.org Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D2F6818392 for ; Fri, 9 Oct 2015 12:39:39 +0000 (UTC) Received: (qmail 26748 invoked by uid 500); 9 Oct 2015 12:39:27 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 26489 invoked by uid 500); 9 Oct 2015 12:39:27 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 26136 invoked by uid 99); 9 Oct 2015 12:39:26 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Oct 2015 12:39:26 +0000 Date: Fri, 9 Oct 2015 12:39:26 +0000 (UTC) From: =?utf-8?Q?Jean-Baptiste_Onofr=C3=A9_=28JIRA=29?= To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (KARAF-3964) cygpath call in "start" to convert CLASSPATH should first verify it's set MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-3964?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Jean-Baptiste Onofr=C3=A9 updated KARAF-3964: ---------------------------------------- Fix Version/s: 3.0.6 > cygpath call in "start" to convert CLASSPATH should first verify it's set > ------------------------------------------------------------------------- > > Key: KARAF-3964 > URL: https://issues.apache.org/jira/browse/KARAF-3964 > Project: Karaf > Issue Type: Bug > Components: karaf-core > Environment: Windows 7, Cygwin > Reporter: David M. Karr > Assignee: Jean-Baptiste Onofr=C3=A9 > Priority: Trivial > Fix For: 4.0.2, 3.0.6 > > > Several of the Karaf scripts have "if $cygwin" blocks that convert some v= ariables to Windows form. If the variable referenced is not set, cygpath wi= ll fail with "cygpath: can't convert empty path". The impact is debatable,= as the variable after the command will be unset, same as before it, but th= e error message can be confusing for users. > Most of these cases are likely dealt with, but one that is not is in the = "start" script, for the "CLASSPATH" variable. I don't set a global CLASSPA= TH value, and I believe it's generally a bad idea to set one. > The most reasonable fix is to simply not run cygpath if CLASSPATH is not = set or is empty. Therefore, change this: > CLASSPATH=3D`cygpath --path --windows "$CLASSPATH"` > to: > if [ ! -z "$CLASSPATH" ]; then > CLASSPATH=3D`cygpath --path --windows "$CLASSPATH"` > fi -- This message was sent by Atlassian JIRA (v6.3.4#6332)