Skip to content

Commit

Permalink
Improve system()
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfru committed Sep 16, 2014
1 parent 3b7e3f0 commit b9bdde4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Binary file modified v0100/bind/smlrcc.exe
Binary file not shown.
Binary file modified v0100/lib/lcdh.a
Binary file not shown.
Binary file modified v0100/lib/lcds.a
Binary file not shown.
4 changes: 4 additions & 0 deletions v0100/srclib/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@ static int helper(char exe[FILENAME_MAX], char** cmd)
{
if (*end == ':' || *end == '/' || *end == '\\')
haspath = 1;
// If there's a '%', it may be an environment variable, pass the
// command to COMMAND.COM as-is.
if (*end == '%')
return 0;
end++;
}

Expand Down

0 comments on commit b9bdde4

Please sign in to comment.