Augmented 'quit' command for those of us who type 'exit' by habit.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3120 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Tyler Dauwalder 2003-04-28 23:32:55 +00:00
parent 4a547c1282
commit a8850e00d1

View File

@ -420,7 +420,6 @@ do_dir(int argc, char **argv)
char mode_str[16];
dent = (struct my_dirent *)buff;
strcpy(dirname, "/myfs/");
if (argc > 1)
strcat(dirname, &argv[1][0]);
@ -1372,7 +1371,8 @@ do_fsh(void)
}
}
if (strncmp(&argv[0][0], "quit", 4) == 0)
if (strncmp(&argv[0][0], "quit", 4) == 0
|| strncmp(&argv[0][0], "exit", 4) == 0)
break;
if (cmd->name == NULL && argv[0][0] != '\0')