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 1A6DA200CDA for ; Fri, 4 Aug 2017 14:23:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1724A16D7B6; Fri, 4 Aug 2017 12:23:09 +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 5A59A16D7B1 for ; Fri, 4 Aug 2017 14:23:08 +0200 (CEST) Received: (qmail 1919 invoked by uid 500); 4 Aug 2017 12:23:07 -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 1908 invoked by uid 99); 4 Aug 2017 12:23:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Aug 2017 12:23:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 261D0C0043 for ; Fri, 4 Aug 2017 12:23:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id hp7NKmZ2RUBr for ; Fri, 4 Aug 2017 12:23:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id B83CF5FCC1 for ; Fri, 4 Aug 2017 12:23:01 +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 E50D1E0D45 for ; Fri, 4 Aug 2017 12:23:00 +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 4528A24651 for ; Fri, 4 Aug 2017 12:23:00 +0000 (UTC) Date: Fri, 4 Aug 2017 12:23:00 +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] [Commented] (KARAF-5284) Karaf 4.1.2-SNAPSHOT bourne shell script doesn't start in cygwin MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 04 Aug 2017 12:23:09 -0000 [ https://issues.apache.org/jira/browse/KARAF-5284?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1611= 4295#comment-16114295 ]=20 Jean-Baptiste Onofr=C3=A9 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 && ./kar= af}}. 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=C3=A9 > 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, doe= s not work, when using the bin/karaf sh file. It does, however, work to sta= rt karaf using the karaf.bat file. > Since karaf is startable from the cygwin window, which is the important t= hing (better copy/paste and window resizing features than cmd.exe), this is= n'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 edi= t the bin/karaf in emacs, changing CRLF to just LF, but then I got these er= ror 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: sy= ntax error near unexpected token `$'{\r'' > 'cygdrive/c/ProgramFiles/apache-karaf-4.1.2-SNAPSHOT/bin/inc: line 19: `w= arn() { > /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)