Changes in uspace/app/bdsh/scli.c [4deb8b5:fc11b8a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/scli.c
r4deb8b5 rfc11b8a 31 31 #include <stdio.h> 32 32 #include <stdlib.h> 33 #include <str .h>33 #include <string.h> 34 34 #include <unistd.h> 35 35 #include "config.h" … … 61 61 usr->line = (char *) NULL; 62 62 usr->name = "root"; 63 usr->home = "/"; 63 64 usr->cwd = (char *) NULL; 64 65 usr->prompt = (char *) NULL; 66 chdir(usr->home); 65 67 usr->lasterr = 0; 66 67 if (input_init() != 0)68 return 1;69 70 68 return (int) cli_set_prompt(usr); 71 69 } … … 89 87 exit(EXIT_FAILURE); 90 88 89 printf("Welcome to %s - %s\nType `help' at any time for usage information.\n", 90 progname, PACKAGE_STRING); 91 91 92 while (!cli_quit) { 92 93 get_input(&usr); … … 97 98 } 98 99 } 100 goto finit; 99 101 100 printf("Leaving %s.\n", progname); 101 102 finit: 102 103 cli_finit(&usr); 103 104 return ret;
Note:
See TracChangeset
for help on using the changeset viewer.