Commit 51ea56fee5f45e9e13a8e929201687bed8e04c77
Fix running very long commands starting with -
Commands which are too long to fit into a single command-line parameter
are executed via an eval hack and eval also needs `--` even though `man
bash` and `help eval` doesn't indicate that in any way.
Author: xaizek
Author date (UTC): 2024-04-14 11:41
Committer name: xaizek
Committer date (UTC): 2024-04-14 11:41
Parent(s): 888023f2b8f5be585e0d25fea4c3ccf24c6e79b5
Signing key: 99DC5E4DB05F6BE2
Tree: 9e294b6c8c8847addb32b1d26ec9465a97b97fdf
File src/utils/utils_nix.c changed (mode: 100644) (index eef5a6e3c..52830b806) |
... |
... |
make_execv_array(char shell[], char shell_flag[], char cmd[]) |
387 |
387 |
* see https://lists.gnu.org/archive/html/bug-make/2009-07/msg00012.html */ |
* see https://lists.gnu.org/archive/html/bug-make/2009-07/msg00012.html */ |
388 |
388 |
eval_cmd = NULL; |
eval_cmd = NULL; |
389 |
389 |
len = 0U; |
len = 0U; |
390 |
|
(void)strappend(&eval_cmd, &len, "eval \""); |
|
|
390 |
|
(void)strappend(&eval_cmd, &len, "eval -- \""); |
391 |
391 |
for(i = 0; i < npieces; ++i) |
for(i = 0; i < npieces; ++i) |
392 |
392 |
{ |
{ |
393 |
393 |
char s[32]; |
char s[32]; |