You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by GitBox <gi...@apache.org> on 2021/11/24 18:23:37 UTC

[GitHub] [lucene] uschindler opened a new pull request #472: LUCENE-10259: Fix startup scripts to allow whitespace in path names

uschindler opened a new pull request #472:
URL: https://github.com/apache/lucene/pull/472


   see https://issues.apache.org/jira/browse/LUCENE-10259


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


[GitHub] [lucene] mocobeta edited a comment on pull request #472: LUCENE-10259: Fix startup scripts to allow whitespace in path names

Posted by GitBox <gi...@apache.org>.
mocobeta edited a comment on pull request #472:
URL: https://github.com/apache/lucene/pull/472#issuecomment-979229790


   ```
   lucene $ tar xzf lucene/distribution/build/release/lucene-10.0.0-SNAPSHOT.tgz -C /tmp/
   lucene $ mv /tmp/lucene-10.0.0-SNAPSHOT/ "/tmp/lucene-10.0.0 SNAPSHOT/"
   lucene $ /tmp/lucene-10.0.0\ SNAPSHOT/bin/luke.sh 
   ```
   ```
   lucene $ less /tmp/lucene-10.0.0\ SNAPSHOT/bin/luke.sh 
   #!/bin/sh
   
   #  Licensed to the Apache Software Foundation (ASF) under one or more
   #  contributor license agreements.  See the NOTICE file distributed with
   #  this work for additional information regarding copyright ownership.
   #  The ASF licenses this file to You under the Apache License, Version 2.0
   #  the "License"); you may not use this file except in compliance with
   #  the License.  You may obtain a copy of the License at
   # 
   #      http://www.apache.org/licenses/LICENSE-2.0
   # 
   #  Unless required by applicable law or agreed to in writing, software
   #  distributed under the License is distributed on an "AS IS" BASIS,
   #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   #  See the License for the specific language governing permissions and
   #  limitations under the License.
   
   MODULES=`dirname "$0"`/..
   MODULES=`cd "$MODULES" && pwd`
   java --module-path "$MODULES/modules:$MODULES/modules-thirdparty" --add-modules org.apache.logging.l
   og4j --module lucene.luke
   
   ```
   This works for me on Fedora 34 and macOS 11.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


[GitHub] [lucene] mocobeta commented on pull request #472: LUCENE-10259: Fix startup scripts to allow whitespace in path names

Posted by GitBox <gi...@apache.org>.
mocobeta commented on pull request #472:
URL: https://github.com/apache/lucene/pull/472#issuecomment-979229790


   ```
   lucene $ tar xzf lucene/distribution/build/release/lucene-10.0.0-SNAPSHOT.tgz -C /tmp/
   lucene $ mv /tmp/lucene-10.0.0-SNAPSHOT/ "/tmp/lucene-10.0.0 SNAPSHOT/"
   lucene $ /tmp/lucene-10.0.0\ SNAPSHOT/bin/luke.sh 
   ```
   This works for me on Fedora 34 and macOS 11.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


[GitHub] [lucene] mocobeta commented on pull request #472: LUCENE-10259: Fix startup scripts to allow whitespace in path names

Posted by GitBox <gi...@apache.org>.
mocobeta commented on pull request #472:
URL: https://github.com/apache/lucene/pull/472#issuecomment-979223095


   luke.sh works for me on Fedora 34. I will run it on macOS 11


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


[GitHub] [lucene] uschindler commented on pull request #472: LUCENE-10259: Fix startup scripts to allow whitespace in path names

Posted by GitBox <gi...@apache.org>.
uschindler commented on pull request #472:
URL: https://github.com/apache/lucene/pull/472#issuecomment-979188057


   I will check syntax and maybe move to /bin/sh. I am not sure about the `$(...)` vs the backticks `` `...` ``. The latter works with plain bourne, the first I am unsure. It's hard to test as most linux have only bash. I can try with dash. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


[GitHub] [lucene] uschindler edited a comment on pull request #472: LUCENE-10259: Fix startup scripts to allow whitespace in path names

Posted by GitBox <gi...@apache.org>.
uschindler edited a comment on pull request #472:
URL: https://github.com/apache/lucene/pull/472#issuecomment-979216649


   Hi i committed a fix which now uses backticks only. It's 2 lines instead of 1 now.
   
   Can anybody check this again with Mac or do i need to start a shell? Maybe @rmuir can check on his BSD box.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


[GitHub] [lucene] uschindler commented on pull request #472: LUCENE-10259: Fix startup scripts to allow whitespace in path names

Posted by GitBox <gi...@apache.org>.
uschindler commented on pull request #472:
URL: https://github.com/apache/lucene/pull/472#issuecomment-979225396


   When testing, make sure to extract lucene to a directory with whitespace (often a quick "mv"works and revert after testing).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


[GitHub] [lucene] uschindler commented on pull request #472: LUCENE-10259: Fix startup scripts to allow whitespace in path names

Posted by GitBox <gi...@apache.org>.
uschindler commented on pull request #472:
URL: https://github.com/apache/lucene/pull/472#issuecomment-979202746


   @rmuir the bourne shell does not support `$(...command...)` and you can only use backticks which can't be nested. I can fix this by writing the first line split into several lines.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


[GitHub] [lucene] uschindler merged pull request #472: LUCENE-10259: Fix startup scripts to allow whitespace in path names

Posted by GitBox <gi...@apache.org>.
uschindler merged pull request #472:
URL: https://github.com/apache/lucene/pull/472


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


[GitHub] [lucene] uschindler commented on pull request #472: LUCENE-10259: Fix startup scripts to allow whitespace in path names

Posted by GitBox <gi...@apache.org>.
uschindler commented on pull request #472:
URL: https://github.com/apache/lucene/pull/472#issuecomment-979216649


   Hi i committed a fix which now uses backticks only. It's only 2 lines now.
   
   Can anybody check this again with Mac or do i need to start a shell? Maybe @rmuir can check on his BSD box.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


[GitHub] [lucene] rmuir commented on pull request #472: LUCENE-10259: Fix startup scripts to allow whitespace in path names

Posted by GitBox <gi...@apache.org>.
rmuir commented on pull request #472:
URL: https://github.com/apache/lucene/pull/472#issuecomment-979168161


   Can we fix scripts header while we are here. `/bin/bash` is wrong. Let's use `/usr/bin/env bash` so it works everywhere (such as BSD). Also for the future, I suspect bash is not really needed and Bourne (sh) will suffice.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org