Changeset 87eba56 in mainline
- Timestamp:
- 2021-08-10T21:11:01Z (3 years ago)
- Children:
- 5ec0e42
- Parents:
- 4518991
- Location:
- uspace/app/bdsh
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/input.c
r4518991 r87eba56 193 193 194 194 cmd_argc = tokens_length; 195 unsigned wait_from = 0; 196 unsigned wait_to = 0; 195 197 for (i = 0, pipe_count = 0; i < tokens_length; i++) { 196 198 switch (tokens[i].type) { … … 202 204 203 205 case TOKTYPE_RDIN: 204 redir_from = tokens[i + 1].text;206 wait_from = 1; 205 207 cmd_argc = i; 206 208 break; 207 209 208 210 case TOKTYPE_RDOU: 209 redir_to = tokens[i + 1].text;211 wait_to = 1; 210 212 cmd_argc = i; 213 break; 214 215 case TOKTYPE_TEXT: 216 if (wait_from) { 217 redir_from = tokens[i].text; 218 wait_from = 0; 219 } 220 if (wait_to) { 221 redir_to = tokens[i].text; 222 wait_to = 0; 223 } 211 224 break; 212 225 -
uspace/app/bdsh/tok.c
r4518991 r87eba56 152 152 return rc; 153 153 } 154 tok_get_char(tok); 154 155 155 rc = tok_push_token(tok); 156 156 if (rc != EOK) { … … 171 171 return rc; 172 172 } 173 tok_get_char(tok); 173 174 174 rc = tok_push_token(tok); 175 175 if (rc != EOK) {
Note:
See TracChangeset
for help on using the changeset viewer.