Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7755

httpfs shell code has hardcoded path to bash

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.1
    • Fix Version/s: 3.0.0-alpha1
    • Component/s: scripts
    • Labels:
      None

      Description

      Most of shell scripts use shebang ling in the following format:
      #!/usr/bin/env bash

      But some scripts contain hardcoded "/bin/bash" which is not portable.

      Please use #!/usr/bin/env bash instead for portability.

      PS: it would be much better to switch to standard Bourne Shell /bin/sh, do these scripts really need bash?

        Attachments

        1. bash.patch
          1.0 kB
          Dmitry Sivachenko

          Issue Links

            Activity

              People

              • Assignee:
                trtrmitya Dmitry Sivachenko
                Reporter:
                trtrmitya Dmitry Sivachenko
              • Votes:
                1 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: