Rev 3397 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3397 | Rev 3492 | ||
---|---|---|---|
Line 40... | Line 40... | ||
40 | #include "cmds.h" |
40 | #include "cmds.h" |
41 | #include "cd.h" |
41 | #include "cd.h" |
42 | 42 | ||
43 | static char * cmdname = "cd"; |
43 | static char * cmdname = "cd"; |
44 | 44 | ||
45 | void * help_cmd_cd(unsigned int level) |
45 | void help_cmd_cd(unsigned int level) |
46 | { |
46 | { |
47 | if (level == HELP_SHORT) { |
47 | if (level == HELP_SHORT) { |
48 | printf("`%s' changes the current working directory.\n", cmdname); |
48 | printf("`%s' changes the current working directory.\n", cmdname); |
49 | } else { |
49 | } else { |
50 | printf( |
50 | printf( |
51 | " %s <directory>\n" |
51 | " %s <directory>\n" |
52 | " Change directory to <directory>, e.g `%s /sbin'\n", |
52 | " Change directory to <directory>, e.g `%s /sbin'\n", |
53 | cmdname, cmdname); |
53 | cmdname, cmdname); |
54 | } |
54 | } |
55 | 55 | ||
56 | return CMD_VOID; |
56 | return; |
57 | } |
57 | } |
58 | 58 | ||
59 | /* This is a very rudamentary 'cd' command. It is not 'link smart' (yet) */ |
59 | /* This is a very rudamentary 'cd' command. It is not 'link smart' (yet) */ |
60 | 60 | ||
61 | int * cmd_cd(char **argv, cliuser_t *usr) |
61 | int cmd_cd(char **argv, cliuser_t *usr) |
62 | { |
62 | { |
63 | int argc, rc = 0; |
63 | int argc, rc = 0; |
64 | 64 | ||
65 | argc = cli_count_args(argv); |
65 | argc = cli_count_args(argv); |
66 | 66 |