summaryrefslogtreecommitdiff
path: root/user/sh.c
diff options
context:
space:
mode:
authorRobert Morris <[email protected]>2022-08-10 07:06:49 -0400
committerFrans Kaashoek <[email protected]>2022-08-10 07:21:50 -0400
commite67cb408d4f66653690fc10b49410273302472e0 (patch)
tree27092965dbdfb219408bf38f3bb4364fc1178559 /user/sh.c
parent07cf0eb25518089a96e8778e6809fc88d292ea5b (diff)
downloadxv6-labs-e67cb408d4f66653690fc10b49410273302472e0.tar.gz
xv6-labs-e67cb408d4f66653690fc10b49410273302472e0.tar.bz2
xv6-labs-e67cb408d4f66653690fc10b49410273302472e0.zip
x
Diffstat (limited to 'user/sh.c')
-rw-r--r--user/sh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/user/sh.c b/user/sh.c
index 864405d..836ebcb 100644
--- a/user/sh.c
+++ b/user/sh.c
@@ -134,7 +134,7 @@ runcmd(struct cmd *cmd)
int
getcmd(char *buf, int nbuf)
{
- write(1, "$ ", 2);
+ write(2, "$ ", 2);
memset(buf, 0, nbuf);
gets(buf, nbuf);
if(buf[0] == 0) // EOF