Changeset d1744fd in mainline for uspace/app/bdsh/input.c
- Timestamp:
- 2018-11-30T05:49:47Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 63087f1d
- Parents:
- 02c6dcc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/input.c
r02c6dcc rd1744fd 187 187 unsigned int cmd_replace_index = cmd_token_start; 188 188 for (i = 0; i < tokens_length; i++) { 189 if (i == cmd_replace_index) {189 if (i == cmd_replace_index) { 190 190 //if there is a pipe symbol than cmd_token_start will point at the SPACE after the pipe symbol 191 if (tokens[i].type == TOKTYPE_SPACE) {191 if (tokens[i].type == TOKTYPE_SPACE) { 192 192 cmd_replace_index++; 193 193 str_append(usr->line, input_length, tokens[i].text); … … 196 196 197 197 str_append(usr->line, input_length, data->value); 198 } else {198 } else { 199 199 str_append(usr->line, input_length, tokens[i].text); 200 200 }
Note:
See TracChangeset
for help on using the changeset viewer.