ch = get(cl);
while (ch != '\n' && ch != NULLCHAR) ch = get(cl);
continue;
- } else if (ch == '/' || ch == '-') {
+ } else if (ch == SLASH || ch == '-') {
/* Switch */
q = argName;
while (ch != ' ' && ch != '=' && ch != ':' && ch != NULLCHAR &&
case ArgString:
case ArgFilename:
+ if(argValue[0] == '~' && argValue[1] == '~') {
+ char buf[4*MSG_SIZ]; // expand ~~
+ snprintf(buf, 4*MSG_SIZ, "%s%s", DATADIR, argValue+2);
+ ASSIGN(*(char **) ad->argLoc, buf);
+ break;
+ }
ASSIGN(*(char **) ad->argLoc, argValue);
break;