diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2023-11-30 16:18:07 +0100 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2023-11-30 16:35:52 +0100 |
commit | a4256c55038013be9fb3fbfe0f2e139609bc0504 (patch) | |
tree | c12921da5ec60dbab8a54eb583302b298075379d | |
parent | 96f7a9f47ee4dafccced87e44f98afa3f14a3df9 (diff) | |
download | rules-cc-a4256c55038013be9fb3fbfe0f2e139609bc0504.tar.gz |
CC/foreign/shell rules: avoid empty path segment
... and hence accidentally picking up executables from the
current working directory.
-rw-r--r-- | CC/foreign/cmake/EXPRESSIONS | 2 | ||||
-rw-r--r-- | CC/foreign/make/EXPRESSIONS | 2 | ||||
-rw-r--r-- | CC/foreign/shell/EXPRESSIONS | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/CC/foreign/cmake/EXPRESSIONS b/CC/foreign/cmake/EXPRESSIONS index b4a9147..9b264d8 100644 --- a/CC/foreign/cmake/EXPRESSIONS +++ b/CC/foreign/cmake/EXPRESSIONS @@ -279,7 +279,7 @@ , { "type": "join_cmd" , "$1": [{"type": "var", "name": "PATH"}] } - , ")\":$PATH" + , ")${PATH:+:}${PATH}\"" ] } ] diff --git a/CC/foreign/make/EXPRESSIONS b/CC/foreign/make/EXPRESSIONS index b03e056..5556f20 100644 --- a/CC/foreign/make/EXPRESSIONS +++ b/CC/foreign/make/EXPRESSIONS @@ -256,7 +256,7 @@ , { "type": "join_cmd" , "$1": [{"type": "var", "name": "PATH"}] } - , ")\":$PATH" + , ")${PATH:+:}${PATH}\"" ] } ] diff --git a/CC/foreign/shell/EXPRESSIONS b/CC/foreign/shell/EXPRESSIONS index 1ed7daa..572835c 100644 --- a/CC/foreign/shell/EXPRESSIONS +++ b/CC/foreign/shell/EXPRESSIONS @@ -251,7 +251,7 @@ , { "type": "join_cmd" , "$1": [{"type": "var", "name": "PATH"}] } - , ")\":$PATH" + , ")${PATH:+:}${PATH}\"" ] } ] |