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 8BD40200C25 for ; Thu, 9 Feb 2017 15:20:47 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 8A8B9160B4C; Thu, 9 Feb 2017 14:20:47 +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 D4277160B6B for ; Thu, 9 Feb 2017 15:20:46 +0100 (CET) Received: (qmail 59554 invoked by uid 500); 9 Feb 2017 14:20:46 -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 59542 invoked by uid 99); 9 Feb 2017 14:20:46 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2017 14:20:46 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id A8709182319 for ; Thu, 9 Feb 2017 14:20:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.198 X-Spam-Level: X-Spam-Status: No, score=-1.198 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id s9O9E5iTOF5E for ; Thu, 9 Feb 2017 14:20:45 +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 B5DE05F4ED for ; Thu, 9 Feb 2017 14:20:44 +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 BCF96E0629 for ; Thu, 9 Feb 2017 14:20:43 +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 80E1821D78 for ; Thu, 9 Feb 2017 14:20:42 +0000 (UTC) Date: Thu, 9 Feb 2017 14:20:42 +0000 (UTC) From: "Guillaume Nodet (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (KARAF-4975) karaf script uses #!/bin/bash instead of #!/usr/bin/env bash MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 09 Feb 2017 14:20:47 -0000 [ https://issues.apache.org/jira/browse/KARAF-4975?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15859581#comment-15859581 ] Guillaume Nodet edited comment on KARAF-4975 at 2/9/17 2:20 PM: ---------------------------------------------------------------- We may want to backport https://github.com/apache/karaf/commit/b1fda013db9827502aff0b5a9a31c34110f66423 which fixes KARAF-4564, KARAF-4852 and KARAF-4865. was (Author: gnt): We may want to backport https://github.com/apache/karaf/commit/b1fda013db9827502aff0b5a9a31c34110f66423 which fixes KARAF-4564, KARAF-4852 and KARAF4865. > karaf script uses #!/bin/bash instead of #!/usr/bin/env bash > ------------------------------------------------------------ > > Key: KARAF-4975 > URL: https://issues.apache.org/jira/browse/KARAF-4975 > Project: Karaf > Issue Type: Bug > Components: karaf-os-integration > Affects Versions: 4.0.8 > Environment: FreeBSD > Reporter: Eric de Boer > Priority: Minor > > The karaf script used to use #/bin/sh, but [changed to|https://git-wip-us.apache.org/repos/asf?p=karaf.git;a=commit;h=55db450a95453c9e587cb6147ef087bb39bb4061] #!/bin/bash, which on FreeBSD doesn't work, as bash is located in /usr/local/bin/bash > According to > http://superuser.com/questions/1133187/when-must-i-use-bin-bash-and-when-bin-sh > It is better to use the environment to find the correct bash, by using > #!/usr/bin/env bash > which indeed works fine on FreeBSD. -- This message was sent by Atlassian JIRA (v6.3.15#6346)