This commit is contained in:
Robert Morris 2022-08-10 07:06:49 -04:00 committed by Frans Kaashoek
parent 07cf0eb255
commit e67cb408d4

View file

@ -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