Fix broken $() substitution in command files.

This commit is contained in:
Stephen Williams 2010-02-04 16:07:27 -08:00
parent b1dc84ccd1
commit 8d65d0735a
1 changed files with 2 additions and 1 deletions

View File

@ -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))) {