-
Bug
-
Resolution: Unresolved
-
Major
-
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
Description | Original: "patch.diff" is a bad name as env variable due to the dot. This causes an error in shell scripts "${patch.diff}: bad substitution" |
New:
"patch.diff" is a bad name as env variable due to the dot. This causes an error in shell scripts {noformat} "${patch.diff}: bad substitution" {noformat} |
Workflow | Original: JNJira [ 163849 ] | New: JNJira + In-Review [ 181404 ] |
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.