summaryrefslogtreecommitdiff
path: root/sh.c
diff options
context:
space:
mode:
authorrsc <rsc>2007-08-24 20:03:40 +0000
committerrsc <rsc>2007-08-24 20:03:40 +0000
commit1b789e1d50df4e7b98fa131fc29caf29a5f38bfa (patch)
treed3a2bd24a03aaede0a51b8e5938db6d55753e96a /sh.c
parent8e88f9e2c617cc1002039c6e37c3c831319b1f8f (diff)
downloadxv6-labs-1b789e1d50df4e7b98fa131fc29caf29a5f38bfa.tar.gz
xv6-labs-1b789e1d50df4e7b98fa131fc29caf29a5f38bfa.tar.bz2
xv6-labs-1b789e1d50df4e7b98fa131fc29caf29a5f38bfa.zip
Remove puts in favor of printf.
Allow multiple arguments to ls.
Diffstat (limited to 'sh.c')
-rw-r--r--sh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sh.c b/sh.c
index 6aa8824..1b517ef 100644
--- a/sh.c
+++ b/sh.c
@@ -51,7 +51,7 @@ main(void)
int
getcmd(char *buf, int nbuf)
{
- puts("$ ");
+ printf(2, "$ ");
memset(buf, 0, nbuf);
gets(buf, nbuf);
if(buf[0] == 0) // EOF