From 4357207237e074b5a42ee9739eadd040fd1cf296 Mon Sep 17 00:00:00 2001 From: rtm Date: Sat, 12 Aug 2006 11:38:57 +0000 Subject: fix getblk to actually lock the block no more cons_put system calls usertests tests two processes writing files --- sh.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sh.c') diff --git a/sh.c b/sh.c index e9ed2d9..9d4a308 100644 --- a/sh.c +++ b/sh.c @@ -12,7 +12,7 @@ main(void) int pid; while(1){ - write(1, "$ ", 2); + puts("$ "); gets(buf, sizeof(buf)); if(buf[0] == '\0') continue; @@ -21,8 +21,7 @@ main(void) args[0] = buf; args[1] = 0; exec(buf, args); - write(1, buf, strlen(buf)); - write(1, ": not found\n", 12); + printf(1, "%s: not found\n", buf); exit(); } if(pid > 0) -- cgit v1.2.3