Browse Source

Treat input files names passed a start-up the same as those entered

as commands or called as scripts: search for them using $sourcepath.
pre-master-46
Giles Atkinson 2 years ago
parent
commit
597268cc26
  1. 12
      src/main.c

12
src/main.c

@ -1406,10 +1406,16 @@ int main(int argc, char **argv)
tp = fopen(p, "r");
tfree(p);
}
if (!tp) {
perror(arg);
err = 1;
break;
/* Try and find it in a directory in $sourcepath. */
tp = inp_pathopen(arg, "r");
if (!tp) {
perror(arg);
err = 1;
break;
}
}
}

Loading…
Cancel
Save