You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2021/11/25 15:12:54 UTC

[lucene] branch branch_9_0 updated: LUCENE-10259: Fix startup scripts to allow whitespace in path names and use /bin/sh only (#472)

This is an automated email from the ASF dual-hosted git repository.

uschindler pushed a commit to branch branch_9_0
in repository https://gitbox.apache.org/repos/asf/lucene.git


The following commit(s) were added to refs/heads/branch_9_0 by this push:
     new 360e078  LUCENE-10259: Fix startup scripts to allow whitespace in path names and use /bin/sh only (#472)
360e078 is described below

commit 360e0781a2ff7649ed6f62977630c7e2748505d1
Author: Uwe Schindler <us...@apache.org>
AuthorDate: Thu Nov 25 16:07:23 2021 +0100

    LUCENE-10259: Fix startup scripts to allow whitespace in path names and use /bin/sh only (#472)
---
 lucene/distribution/src/binary-release/bin/luke.cmd | 2 +-
 lucene/distribution/src/binary-release/bin/luke.sh  | 7 ++++---
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/lucene/distribution/src/binary-release/bin/luke.cmd b/lucene/distribution/src/binary-release/bin/luke.cmd
index 26f7577..cb8b1e3 100644
--- a/lucene/distribution/src/binary-release/bin/luke.cmd
+++ b/lucene/distribution/src/binary-release/bin/luke.cmd
@@ -17,5 +17,5 @@
 
 SETLOCAL
 SET MODULES=%~dp0..
-start javaw --module-path %MODULES%\modules;%MODULES%\modules-thirdparty --add-modules org.apache.logging.log4j --module lucene.luke
+start javaw --module-path "%MODULES%\modules;%MODULES%\modules-thirdparty" --add-modules org.apache.logging.log4j --module lucene.luke
 ENDLOCAL
diff --git a/lucene/distribution/src/binary-release/bin/luke.sh b/lucene/distribution/src/binary-release/bin/luke.sh
index e2db654..1593ac6 100644
--- a/lucene/distribution/src/binary-release/bin/luke.sh
+++ b/lucene/distribution/src/binary-release/bin/luke.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 #  Licensed to the Apache Software Foundation (ASF) under one or more
 #  contributor license agreements.  See the NOTICE file distributed with
@@ -15,5 +15,6 @@
 #  See the License for the specific language governing permissions and
 #  limitations under the License.
 
-MODULES=$(cd $(dirname $0)/.. && pwd)
-java --module-path $MODULES/modules:$MODULES/modules-thirdparty --add-modules org.apache.logging.log4j --module lucene.luke
+MODULES=`dirname "$0"`/..
+MODULES=`cd "$MODULES" && pwd`
+java --module-path "$MODULES/modules:$MODULES/modules-thirdparty" --add-modules org.apache.logging.log4j --module lucene.luke