karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric de Boer (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KARAF-4975) karaf script uses #!/bin/bash instead of #!/usr/bin/env bash
Date Thu, 02 Feb 2017 18:54:51 GMT
Eric de Boer created KARAF-4975:

             Summary: 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-core
         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 

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

View raw message