aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/bc.y
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/bc.y')
-rw-r--r--src/cmd/bc.y4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmd/bc.y b/src/cmd/bc.y
index 5eddf471..1bd638e2 100644
--- a/src/cmd/bc.y
+++ b/src/cmd/bc.y
@@ -6,6 +6,8 @@
#define bsp_max 5000
Biobuf *in;
+ #define stdin bstdin
+ #define stdout bstdout
Biobuf stdin;
Biobuf stdout;
char cary[1000];
@@ -979,5 +981,5 @@ main(int argc, char **argv)
dup(p[0], 0);
close(p[0]);
close(p[1]);
- execl("/bin/dc", "dc", 0);
+ execlp("dc", "dc", 0);
}