Rev 6857 | Rev 7802 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6857 | Rev 6862 | ||
---|---|---|---|
Line 127... | Line 127... | ||
127 | kol_exit(); |
127 | kol_exit(); |
128 | } |
128 | } |
129 | 129 | ||
Line 130... | Line 130... | ||
130 | 130 | ||
131 | strcpy(cur_dir, PATH); |
131 | //strcpy(cur_dir, PATH); |
- | 132 | //dir_truncate(cur_dir); |
|
- | 133 | getcwd(cur_dir, sizeof cur_dir); |
|
Line 132... | Line 134... | ||
132 | dir_truncate(cur_dir); |
134 | //printf("curdir %s\n", cur_dir); |
Line 133... | Line 135... | ||
133 | 135 | ||
Line 134... | Line 136... | ||
134 | con_set_cursor_height(con_get_font_height()-1); |
136 | con_set_cursor_height(con_get_font_height()-1); |
135 | 137 | ||
136 | ALIASES = malloc(128*1024); |
138 | ALIASES = malloc(128*1024); |
- | 139 | ||
137 | 140 | if (!PARAM || PARAM[0] == 0) |
|
138 | if (PARAM[0] == 0) |
141 | { |
139 | { |
142 | strcpy(CMD, PATH); |
140 | strcpy(CMD, cur_dir); |
143 | dir_truncate(CMD); |
141 | strcat(CMD, ".shell"); |
144 | strcat(CMD, ".shell"); |