Fix broken $() substitution in command files.
(cherry picked from commit 8d65d0735a)
This commit is contained in:
parent
5680dec04c
commit
73a9880417
|
|
@ -49,12 +49,13 @@ char* substitutions(const char*str)
|
|||
str = ep + 1;
|
||||
|
||||
value = getenv(name);
|
||||
if (value == 0)
|
||||
if (value == 0) {
|
||||
fprintf(stderr, "Warning: environment variable "
|
||||
"\"%s\" not found during command file "
|
||||
"processing.\n", name);
|
||||
free(name);
|
||||
continue;
|
||||
}
|
||||
free(name);
|
||||
|
||||
if (strlen(value) >= (nbuf - (cp-buf))) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue