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:
@@ -420,7 +420,6 @@ do_dir(int argc, char **argv)
|
|||||||
char mode_str[16];
|
char mode_str[16];
|
||||||
|
|
||||||
dent = (struct my_dirent *)buff;
|
dent = (struct my_dirent *)buff;
|
||||||
|
|
||||||
strcpy(dirname, "/myfs/");
|
strcpy(dirname, "/myfs/");
|
||||||
if (argc > 1)
|
if (argc > 1)
|
||||||
strcat(dirname, &argv[1][0]);
|
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;
|
break;
|
||||||
|
|
||||||
if (cmd->name == NULL && argv[0][0] != '\0')
|
if (cmd->name == NULL && argv[0][0] != '\0')
|
||||||
|
|||||||
Reference in New Issue
Block a user