Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-28984

"patch.diff" is a bad name as env variable due to the dot

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • patch-parameter-plugin
    • None
    • Linux

      "patch.diff" is a bad name as env variable due to the dot. This causes an error in shell scripts

      "${patch.diff}: bad substitution"
      

          [JENKINS-28984] "patch.diff" is a bad name as env variable due to the dot

          Axel Heider added a comment -

          work-around in a shell script is using: printenv patch.diff. That should solve the practical problem. But the name patch.diff is still not the best choice. I understand that is cannot be dropped for compatibility reasons, but another env var name like "patch_file" could be introduced in addition.

          Axel Heider added a comment - work-around in a shell script is using: printenv patch.diff . That should solve the practical problem. But the name patch.diff is still not the best choice. I understand that is cannot be dropped for compatibility reasons, but another env var name like "patch_file" could be introduced in addition.

            Unassigned Unassigned
            axelh Axel Heider
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: