Changeset 1433ecda in mainline for uspace/app/bdsh/input.c
- Timestamp:
- 2018-04-04T15:42:37Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/input.c
r47b2d7e3 r1433ecda 101 101 } 102 102 103 if (tokens_length > 0 && tokens[tokens_length -1].type == TOKTYPE_SPACE) {103 if (tokens_length > 0 && tokens[tokens_length - 1].type == TOKTYPE_SPACE) { 104 104 tokens_length--; 105 105 } … … 131 131 /* Ignore the first three tokens (from, file, pipe) and set from */ 132 132 redir_from = tokens[2].text; 133 cmd_token_start = pipe_pos[0] +1;133 cmd_token_start = pipe_pos[0] + 1; 134 134 processed_pipes++; 135 135 } … … 139 139 (pipe_pos[processed_pipes] == tokens_length - 4 || 140 140 (pipe_pos[processed_pipes] == tokens_length - 5 && 141 tokens[tokens_length -4].type == TOKTYPE_SPACE)) &&142 str_cmp(tokens[tokens_length -3].text, "to") == 0) {141 tokens[tokens_length - 4].type == TOKTYPE_SPACE)) && 142 str_cmp(tokens[tokens_length - 3].text, "to") == 0) { 143 143 /* Ignore the last three tokens (pipe, to, file) and set to */ 144 redir_to = tokens[tokens_length -1].text;144 redir_to = tokens[tokens_length - 1].text; 145 145 cmd_token_end = pipe_pos[processed_pipes]; 146 146 processed_pipes++;
Note:
See TracChangeset
for help on using the changeset viewer.