Subversion Repositories HelenOS

Rev

Rev 3809 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3809 Rev 4264
Line 47... Line 47...
47
 
47
 
48
    if (NULL == command)
48
    if (NULL == command)
49
        return -2;
49
        return -2;
50
 
50
 
51
    for (cmd = builtins; cmd->name != NULL; cmd++, i++) {
51
    for (cmd = builtins; cmd->name != NULL; cmd++, i++) {
52
        if (!strcmp(cmd->name, command))
52
        if (!str_cmp(cmd->name, command))
53
            return i;
53
            return i;
54
    }
54
    }
55
 
55
 
56
    return -1;
56
    return -1;
57
}
57
}
Line 62... Line 62...
62
 
62
 
63
    if (NULL == command)
63
    if (NULL == command)
64
        return -1;
64
        return -1;
65
 
65
 
66
    for(i=0; builtin_aliases[i] != NULL; i+=2) {
66
    for(i=0; builtin_aliases[i] != NULL; i+=2) {
67
        if (!strcmp(builtin_aliases[i], command))
67
        if (!str_cmp(builtin_aliases[i], command))
68
            return 1;
68
            return 1;
69
    }
69
    }
70
 
70
 
71
    return 0;
71
    return 0;
72
}
72
}
Line 77... Line 77...
77
 
77
 
78
    if (NULL == command)
78
    if (NULL == command)
79
        return (char *)NULL;
79
        return (char *)NULL;
80
 
80
 
81
    for(i=0; builtin_aliases[i] != NULL; i++) {
81
    for(i=0; builtin_aliases[i] != NULL; i++) {
82
        if (!strcmp(builtin_aliases[i], command))
82
        if (!str_cmp(builtin_aliases[i], command))
83
            return (char *)builtin_aliases[++i];
83
            return (char *)builtin_aliases[++i];
84
        i++;
84
        i++;
85
    }
85
    }
86
 
86
 
87
    return (char *)NULL;
87
    return (char *)NULL;