summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Morris <[email protected]>2022-08-10 07:06:49 -0400
committerRobert Morris <[email protected]>2022-08-10 07:06:49 -0400
commite606f95459c6e1ce6d44de6c0f2d5c5fc4f74eb5 (patch)
tree27092965dbdfb219408bf38f3bb4364fc1178559
parentc3a17f454a135dd1fc694ce8b203dda1233c341e (diff)
downloadxv6-labs-e606f95459c6e1ce6d44de6c0f2d5c5fc4f74eb5.tar.gz
xv6-labs-e606f95459c6e1ce6d44de6c0f2d5c5fc4f74eb5.tar.bz2
xv6-labs-e606f95459c6e1ce6d44de6c0f2d5c5fc4f74eb5.zip
x
-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