[jira] [Commented] (KARAF-5284) Karaf 4.1.2-SNAPSHOT bourne shell script doesn't start in cygwin

2017-08-05 Thread Steinar Bang (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-5284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16115382#comment-16115382
 ] 

Steinar Bang commented on KARAF-5284:
-

I just tried the 4.1.2 release candate zip file from: 
https://repository.apache.org/content/repositories/orgapachekaraf-1097/org/apache/karaf/apache-karaf/4.1.2/

This zip file's bourne shell file started karaf without a hitch on the exact 
same cygwin where I had the problem from the 4.1.2-SNAPSHOT file:
{noformat}
sb@mccoy:/cygdrive/c/ProgramFiles/apache-karaf-4.1.2$ bin/karaf
__ __  
   / //_/ __ _/ __/
  / ,<  / __ `/ ___/ __ `/ /_
 / /| |/ /_/ / /  / /_/ / __/
/_/ |_|\__,_/_/   \__,_/_/

  Apache Karaf (4.1.2)

Hit '' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '' or type 'system:shutdown' or 'logout' to shutdown Karaf.

karaf@root()>
{noformat}


> Karaf 4.1.2-SNAPSHOT bourne shell script doesn't start in cygwin
> 
>
> Key: KARAF-5284
> URL: https://issues.apache.org/jira/browse/KARAF-5284
> Project: Karaf
>  Issue Type: Bug
> Environment: Karaf 4.1.2-SNAPSHOT, zip file assembly, built from a 
> fresh pull.
> JDK 1.8_141
> CYGWIN_NT-10.0 mccoy 2.5.2(0.297/5/3) 2016-06-23 14:29 x86_64 Cygwin
>Reporter: Steinar Bang
>Assignee: Jean-Baptiste Onofré
>Priority: Minor
>  Labels: karaf-shell
>
> Starting karaf unpacked from a zip file, from a cygwin terminal works in 
> karaf 4.1.1 (starting from the karaf.bat file doesn't work there).
> Starting karaf 4.1.2-SNAPSHOT unpacked from a freshly build zip file, does 
> not work, when using the bin/karaf sh file. It does, however, work to start 
> karaf using the karaf.bat file.
> Since karaf is startable from the cygwin window, which is the important thing 
> (better copy/paste and window resizing features than cmd.exe), this isn't 
> very important.
> But I'm reporting it anyway, since it is a change in behaviour since 4.1.1.
> Starting karaf using bin/karaf gave this error message
> {noformat}
> sb@mccoy:/cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT$ bin/karaf
> bin/karaf: line 18: $'\r': command not found
> bin/karaf: line 19: syntax error near unexpected token `$'{\r''
> 'in/karaf: line 19: `realpath() {
> {noformat}
> Since this is recognizable as a "problem with CR-LF" error message, I edit 
> the bin/karaf in emacs, changing CRLF to just LF, but then I got these error 
> messages:
> {noformat}
> sb@mccoy:/cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT$ bin/karaf
> /cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT/bin/inc: line 18: $'\r': 
> command not found
> /cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT/bin/inc: line 19: syntax 
> error near unexpected token `$'{\r''
> 'cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT/bin/inc: line 19: 
> `warn() {
> /cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT/bin/setenv: line 18: 
> $'\r': command not found
> /cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT/bin/setenv: line 26: 
> $'\r': command not found
> /cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT/bin/setenv: line 33: 
> $'\r': command not found
> bin/karaf: line 109: detectOS: command not found
> bin/karaf: line 112: unlimitFD: command not found
> bin/karaf: line 115: locateHome: command not found
> bin/karaf: line 118: locateBase: command not found
> bin/karaf: line 121: locateData: command not found
> bin/karaf: line 124: locateEtc: command not found
> bin/karaf: line 127: setupNativePath: command not found
> bin/karaf: line 130: locateJava: command not found
> bin/karaf: line 133: detectJVM: command not found
> bin/karaf: line 136: checkJvmVersion: command not found
> bin/karaf: line 142: setupDefaults: command not found
> bin/karaf: line 148: setupDebugOptions: command not found
> bin/karaf: line 165: convertPaths: command not found
> bin/karaf: line 243: KARAF_HOME: parameter null or not set
> sb@mccoy:/cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT$
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (KARAF-5284) Karaf 4.1.2-SNAPSHOT bourne shell script doesn't start in cygwin

2017-08-04 Thread JIRA

[ 
https://issues.apache.org/jira/browse/KARAF-5284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16114427#comment-16114427
 ] 

Jean-Baptiste Onofré commented on KARAF-5284:
-

The build was on Linux, and the test on Windows 7 VM with Cygwin. I will try 
with a build on Windows.

> Karaf 4.1.2-SNAPSHOT bourne shell script doesn't start in cygwin
> 
>
> Key: KARAF-5284
> URL: https://issues.apache.org/jira/browse/KARAF-5284
> Project: Karaf
>  Issue Type: Bug
> Environment: Karaf 4.1.2-SNAPSHOT, zip file assembly, built from a 
> fresh pull.
> JDK 1.8_141
> CYGWIN_NT-10.0 mccoy 2.5.2(0.297/5/3) 2016-06-23 14:29 x86_64 Cygwin
>Reporter: Steinar Bang
>Assignee: Jean-Baptiste Onofré
>Priority: Minor
>  Labels: karaf-shell
>
> Starting karaf unpacked from a zip file, from a cygwin terminal works in 
> karaf 4.1.1 (starting from the karaf.bat file doesn't work there).
> Starting karaf 4.1.2-SNAPSHOT unpacked from a freshly build zip file, does 
> not work, when using the bin/karaf sh file. It does, however, work to start 
> karaf using the karaf.bat file.
> Since karaf is startable from the cygwin window, which is the important thing 
> (better copy/paste and window resizing features than cmd.exe), this isn't 
> very important.
> But I'm reporting it anyway, since it is a change in behaviour since 4.1.1.
> Starting karaf using bin/karaf gave this error message
> {noformat}
> sb@mccoy:/cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT$ bin/karaf
> bin/karaf: line 18: $'\r': command not found
> bin/karaf: line 19: syntax error near unexpected token `$'{\r''
> 'in/karaf: line 19: `realpath() {
> {noformat}
> Since this is recognizable as a "problem with CR-LF" error message, I edit 
> the bin/karaf in emacs, changing CRLF to just LF, but then I got these error 
> messages:
> {noformat}
> sb@mccoy:/cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT$ bin/karaf
> /cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT/bin/inc: line 18: $'\r': 
> command not found
> /cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT/bin/inc: line 19: syntax 
> error near unexpected token `$'{\r''
> 'cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT/bin/inc: line 19: 
> `warn() {
> /cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT/bin/setenv: line 18: 
> $'\r': command not found
> /cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT/bin/setenv: line 26: 
> $'\r': command not found
> /cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT/bin/setenv: line 33: 
> $'\r': command not found
> bin/karaf: line 109: detectOS: command not found
> bin/karaf: line 112: unlimitFD: command not found
> bin/karaf: line 115: locateHome: command not found
> bin/karaf: line 118: locateBase: command not found
> bin/karaf: line 121: locateData: command not found
> bin/karaf: line 124: locateEtc: command not found
> bin/karaf: line 127: setupNativePath: command not found
> bin/karaf: line 130: locateJava: command not found
> bin/karaf: line 133: detectJVM: command not found
> bin/karaf: line 136: checkJvmVersion: command not found
> bin/karaf: line 142: setupDefaults: command not found
> bin/karaf: line 148: setupDebugOptions: command not found
> bin/karaf: line 165: convertPaths: command not found
> bin/karaf: line 243: KARAF_HOME: parameter null or not set
> sb@mccoy:/cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT$
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (KARAF-5284) Karaf 4.1.2-SNAPSHOT bourne shell script doesn't start in cygwin

2017-08-04 Thread Steinar Bang (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-5284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16114425#comment-16114425
 ] 

Steinar Bang commented on KARAF-5284:
-

Was the karaf 4.1.2-SNAPSHOT where you couldn't reproduce built on windows? Or 
was it built on linux/BSD/etc.?

The 4.1.2-SNAPSHOT that failed for me was built on windows (and that might 
affect the line ending of the scripts).

> Karaf 4.1.2-SNAPSHOT bourne shell script doesn't start in cygwin
> 
>
> Key: KARAF-5284
> URL: https://issues.apache.org/jira/browse/KARAF-5284
> Project: Karaf
>  Issue Type: Bug
> Environment: Karaf 4.1.2-SNAPSHOT, zip file assembly, built from a 
> fresh pull.
> JDK 1.8_141
> CYGWIN_NT-10.0 mccoy 2.5.2(0.297/5/3) 2016-06-23 14:29 x86_64 Cygwin
>Reporter: Steinar Bang
>Assignee: Jean-Baptiste Onofré
>Priority: Minor
>  Labels: karaf-shell
>
> Starting karaf unpacked from a zip file, from a cygwin terminal works in 
> karaf 4.1.1 (starting from the karaf.bat file doesn't work there).
> Starting karaf 4.1.2-SNAPSHOT unpacked from a freshly build zip file, does 
> not work, when using the bin/karaf sh file. It does, however, work to start 
> karaf using the karaf.bat file.
> Since karaf is startable from the cygwin window, which is the important thing 
> (better copy/paste and window resizing features than cmd.exe), this isn't 
> very important.
> But I'm reporting it anyway, since it is a change in behaviour since 4.1.1.
> Starting karaf using bin/karaf gave this error message
> {noformat}
> sb@mccoy:/cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT$ bin/karaf
> bin/karaf: line 18: $'\r': command not found
> bin/karaf: line 19: syntax error near unexpected token `$'{\r''
> 'in/karaf: line 19: `realpath() {
> {noformat}
> Since this is recognizable as a "problem with CR-LF" error message, I edit 
> the bin/karaf in emacs, changing CRLF to just LF, but then I got these error 
> messages:
> {noformat}
> sb@mccoy:/cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT$ bin/karaf
> /cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT/bin/inc: line 18: $'\r': 
> command not found
> /cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT/bin/inc: line 19: syntax 
> error near unexpected token `$'{\r''
> 'cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT/bin/inc: line 19: 
> `warn() {
> /cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT/bin/setenv: line 18: 
> $'\r': command not found
> /cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT/bin/setenv: line 26: 
> $'\r': command not found
> /cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT/bin/setenv: line 33: 
> $'\r': command not found
> bin/karaf: line 109: detectOS: command not found
> bin/karaf: line 112: unlimitFD: command not found
> bin/karaf: line 115: locateHome: command not found
> bin/karaf: line 118: locateBase: command not found
> bin/karaf: line 121: locateData: command not found
> bin/karaf: line 124: locateEtc: command not found
> bin/karaf: line 127: setupNativePath: command not found
> bin/karaf: line 130: locateJava: command not found
> bin/karaf: line 133: detectJVM: command not found
> bin/karaf: line 136: checkJvmVersion: command not found
> bin/karaf: line 142: setupDefaults: command not found
> bin/karaf: line 148: setupDebugOptions: command not found
> bin/karaf: line 165: convertPaths: command not found
> bin/karaf: line 243: KARAF_HOME: parameter null or not set
> sb@mccoy:/cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT$
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (KARAF-5284) Karaf 4.1.2-SNAPSHOT bourne shell script doesn't start in cygwin

2017-08-04 Thread JIRA

[ 
https://issues.apache.org/jira/browse/KARAF-5284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16114295#comment-16114295
 ] 

Jean-Baptiste Onofré commented on KARAF-5284:
-

I just tried on Windows 7 VM with Cygwin. With a freshly built Karaf 
4.1.2-SNAPSHOT, in the Cygwin terminal, I did {{bin/karaf}} and {{cd bin && 
./karaf}}. Both worked for me. The only thing I noticed is a warning {{: 
integer expression expected}} coming from the Java version check (not a big 
deal).

> Karaf 4.1.2-SNAPSHOT bourne shell script doesn't start in cygwin
> 
>
> Key: KARAF-5284
> URL: https://issues.apache.org/jira/browse/KARAF-5284
> Project: Karaf
>  Issue Type: Bug
> Environment: Karaf 4.1.2-SNAPSHOT, zip file assembly, built from a 
> fresh pull.
> JDK 1.8_141
> CYGWIN_NT-10.0 mccoy 2.5.2(0.297/5/3) 2016-06-23 14:29 x86_64 Cygwin
>Reporter: Steinar Bang
>Assignee: Jean-Baptiste Onofré
>Priority: Minor
>  Labels: karaf-shell
> Fix For: 4.2.0, 4.1.2
>
>
> Starting karaf unpacked from a zip file, from a cygwin terminal works in 
> karaf 4.1.1 (starting from the karaf.bat file doesn't work there).
> Starting karaf 4.1.2-SNAPSHOT unpacked from a freshly build zip file, does 
> not work, when using the bin/karaf sh file. It does, however, work to start 
> karaf using the karaf.bat file.
> Since karaf is startable from the cygwin window, which is the important thing 
> (better copy/paste and window resizing features than cmd.exe), this isn't 
> very important.
> But I'm reporting it anyway, since it is a change in behaviour since 4.1.1.
> Starting karaf using bin/karaf gave this error message
> {noformat}
> sb@mccoy:/cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT$ bin/karaf
> bin/karaf: line 18: $'\r': command not found
> bin/karaf: line 19: syntax error near unexpected token `$'{\r''
> 'in/karaf: line 19: `realpath() {
> {noformat}
> Since this is recognizable as a "problem with CR-LF" error message, I edit 
> the bin/karaf in emacs, changing CRLF to just LF, but then I got these error 
> messages:
> {noformat}
> sb@mccoy:/cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT$ bin/karaf
> /cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT/bin/inc: line 18: $'\r': 
> command not found
> /cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT/bin/inc: line 19: syntax 
> error near unexpected token `$'{\r''
> 'cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT/bin/inc: line 19: 
> `warn() {
> /cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT/bin/setenv: line 18: 
> $'\r': command not found
> /cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT/bin/setenv: line 26: 
> $'\r': command not found
> /cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT/bin/setenv: line 33: 
> $'\r': command not found
> bin/karaf: line 109: detectOS: command not found
> bin/karaf: line 112: unlimitFD: command not found
> bin/karaf: line 115: locateHome: command not found
> bin/karaf: line 118: locateBase: command not found
> bin/karaf: line 121: locateData: command not found
> bin/karaf: line 124: locateEtc: command not found
> bin/karaf: line 127: setupNativePath: command not found
> bin/karaf: line 130: locateJava: command not found
> bin/karaf: line 133: detectJVM: command not found
> bin/karaf: line 136: checkJvmVersion: command not found
> bin/karaf: line 142: setupDefaults: command not found
> bin/karaf: line 148: setupDebugOptions: command not found
> bin/karaf: line 165: convertPaths: command not found
> bin/karaf: line 243: KARAF_HOME: parameter null or not set
> sb@mccoy:/cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT$
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (KARAF-5284) Karaf 4.1.2-SNAPSHOT bourne shell script doesn't start in cygwin

2017-08-02 Thread JIRA

[ 
https://issues.apache.org/jira/browse/KARAF-5284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16111227#comment-16111227
 ] 

Jean-Baptiste Onofré commented on KARAF-5284:
-

Thanks for the report, I'm trying to include this for 4.1.2 release.

> Karaf 4.1.2-SNAPSHOT bourne shell script doesn't start in cygwin
> 
>
> Key: KARAF-5284
> URL: https://issues.apache.org/jira/browse/KARAF-5284
> Project: Karaf
>  Issue Type: Bug
> Environment: Karaf 4.1.2-SNAPSHOT, zip file assembly, built from a 
> fresh pull.
> JDK 1.8_141
> CYGWIN_NT-10.0 mccoy 2.5.2(0.297/5/3) 2016-06-23 14:29 x86_64 Cygwin
>Reporter: Steinar Bang
>Assignee: Jean-Baptiste Onofré
>Priority: Minor
>  Labels: karaf-shell
> Fix For: 4.2.0, 4.1.2
>
>
> Starting karaf unpacked from a zip file, from a cygwin terminal works in 
> karaf 4.1.1 (starting from the karaf.bat file doesn't work there).
> Starting karaf 4.1.2-SNAPSHOT unpacked from a freshly build zip file, does 
> not work, when using the bin/karaf sh file. It does, however, work to start 
> karaf using the karaf.bat file.
> Since karaf is startable from the cygwin window, which is the important thing 
> (better copy/paste and window resizing features than cmd.exe), this isn't 
> very important.
> But I'm reporting it anyway, since it is a change in behaviour since 4.1.1.
> Starting karaf using bin/karaf gave this error message
> {noformat}
> sb@mccoy:/cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT$ bin/karaf
> bin/karaf: line 18: $'\r': command not found
> bin/karaf: line 19: syntax error near unexpected token `$'{\r''
> 'in/karaf: line 19: `realpath() {
> {noformat}
> Since this is recognizable as a "problem with CR-LF" error message, I edit 
> the bin/karaf in emacs, changing CRLF to just LF, but then I got these error 
> messages:
> {noformat}
> sb@mccoy:/cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT$ bin/karaf
> /cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT/bin/inc: line 18: $'\r': 
> command not found
> /cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT/bin/inc: line 19: syntax 
> error near unexpected token `$'{\r''
> 'cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT/bin/inc: line 19: 
> `warn() {
> /cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT/bin/setenv: line 18: 
> $'\r': command not found
> /cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT/bin/setenv: line 26: 
> $'\r': command not found
> /cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT/bin/setenv: line 33: 
> $'\r': command not found
> bin/karaf: line 109: detectOS: command not found
> bin/karaf: line 112: unlimitFD: command not found
> bin/karaf: line 115: locateHome: command not found
> bin/karaf: line 118: locateBase: command not found
> bin/karaf: line 121: locateData: command not found
> bin/karaf: line 124: locateEtc: command not found
> bin/karaf: line 127: setupNativePath: command not found
> bin/karaf: line 130: locateJava: command not found
> bin/karaf: line 133: detectJVM: command not found
> bin/karaf: line 136: checkJvmVersion: command not found
> bin/karaf: line 142: setupDefaults: command not found
> bin/karaf: line 148: setupDebugOptions: command not found
> bin/karaf: line 165: convertPaths: command not found
> bin/karaf: line 243: KARAF_HOME: parameter null or not set
> sb@mccoy:/cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT$
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)