51,12 → 51,9 |
printf("`%s' changes the current working directory.\n", cmdname); |
} else { |
printf( |
" %s [-L|-P] [dir]\n" |
" Your home directory is the default if [dir] is not provided.\n" |
" The -P option specifies to always use the physical directory\n" |
" structure instead of following symbolic links. The -L option\n" |
" is the exact reverse of -P, symbolic links will be forced.\n" |
" Note: -L|-P are not yet implemented\n", cmdname); |
" %s <directory>\n" |
" Change directory to <directory>, e.g `%s /sbin'\n", |
cmdname, cmdname); |
} |
|
return CMD_VOID; |
80,6 → 77,12 |
return CMD_FAILURE; |
} |
|
if (argc < 2) { |
printf("%s - no directory specified. Try `help %s extended'\n", |
cmdname, cmdname); |
return CMD_FAILURE; |
} |
|
/* We have the correct # of arguments |
* TODO: handle tidle (~) expansion? */ |
|