Commit 39761df
committed
Enclose variable value within single quote for shells
When setting an environment variable on sh and fish shells, enclose the
value within single quote rather escaping any special characters.
With this change is its possible to have newline character included in
environment variable value.
Exception is made for csh shells where unsupported newline character in
variable value is chopped.
Other language supported where already enclosing variable values in
single quotes (python, ruby, etc).
Fixes #557
Signed-off-by: Xavier Delaruelle <[email protected]>1 parent 1d1a1f0 commit 39761df
1 file changed
+10
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
236 | 240 | | |
237 | 241 | | |
238 | 242 | | |
| |||
251 | 255 | | |
252 | 256 | | |
253 | 257 | | |
254 | | - | |
255 | | - | |
| 258 | + | |
| 259 | + | |
256 | 260 | | |
257 | 261 | | |
258 | | - | |
| 262 | + | |
259 | 263 | | |
260 | 264 | | |
261 | 265 | | |
262 | 266 | | |
263 | | - | |
| 267 | + | |
264 | 268 | | |
265 | | - | |
| 269 | + | |
266 | 270 | | |
267 | 271 | | |
268 | 272 | | |
| |||
0 commit comments