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