Remove the need for SHPATH. - sam - An updated version of the sam text editor. | |
git clone git://vernunftzentrum.de/sam.git | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 92a9402c757a339ff0aa035d3a26f542a03e9085 | |
parent 36ee545bc93abaa175d28eea4c389d32d99dce9b | |
Author: Rob King <[email protected]> | |
Date: Fri, 9 Sep 2016 17:40:00 -0500 | |
Remove the need for SHPATH. | |
Diffstat: | |
sam/shell.c | 3 +-- | |
1 file changed, 1 insertion(+), 2 deletions(-) | |
--- | |
diff --git a/sam/shell.c b/sam/shell.c | |
@@ -95,8 +95,7 @@ plan9(File *f, int type, String *s, int nest) | |
close(0); /* so it won't read from terminal */ | |
open("/dev/null", 0); | |
} | |
- execlp(SHPATH, SHPATH, "-c", Strtoc(&plan9cmd), (char *)0); | |
- exits("exec"); | |
+ exit(system(Strtoc(&plan9cmd))); | |
} | |
if(pid == -1) | |
error(Efork); |