Subversion Repositories HelenOS

Rev

Rev 3346 | Rev 3377 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3346 Rev 3376
Line 60... Line 60...
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
    for (argc = 0; argv[argc] != NULL; argc ++);
65
    argc = cli_count_args(argv);
66
 
66
 
67
    /* We don't yet play nice with whitespace, a getopt implementation should
67
    /* We don't yet play nice with whitespace, a getopt implementation should
68
     * protect "quoted\ destination" as a single argument. Its not our job to
68
     * protect "quoted\ destination" as a single argument. Its not our job to
69
     * look for && || or redirection as the tokenizer should have done that
69
     * look for && || or redirection as the tokenizer should have done that
70
     * (currently, it does not) */
70
     * (currently, it does not) */