Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-4975

karaf script uses #!/bin/bash instead of #!/usr/bin/env bash

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.0.8
    • 4.0.9
    • karaf
    • None
    • FreeBSD

    Description

      The karaf script used to use #/bin/sh, but changed to #!/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.

      Attachments

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            esdeboer Eric de Boer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: