karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (KARAF-4975) karaf script uses #!/bin/bash instead of #!/usr/bin/env bash
Date Thu, 09 Feb 2017 14:20:42 GMT

    [ 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)

Mime
View raw message