Rev 3245 | Rev 4106 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3245 | Rev 3988 | ||
---|---|---|---|
Line 126... | Line 126... | ||
126 | con_set_cursor_height(con_get_font_height()-1); |
126 | con_set_cursor_height(con_get_font_height()-1); |
Line 127... | Line 127... | ||
127 | 127 | ||
Line 128... | Line -... | ||
128 | ALIASES = malloc(128*1024); |
- | |
129 | 128 | ALIASES = malloc(128*1024); |
|
130 | if (strlen(PARAM) > 0) |
129 | |
- | 130 | if (PARAM[0] == 0) strcpy(CMD, ".shell"); |
|
- | 131 | else |
|
- | 132 | { |
|
- | 133 | if (PARAM[0] == '/') |
|
- | 134 | { |
|
- | 135 | strcpy(cur_dir, PARAM); |
|
131 | strcpy(CMD, PARAM); |
136 | *strrchr(cur_dir, '/')=0; |
- | 137 | } |
|
Line 132... | Line 138... | ||
132 | else |
138 | strcpy(CMD, PARAM); |
Line 133... | Line 139... | ||
133 | strcpy(CMD, ".shell"); |
139 | } |
134 | 140 |