Changeset 506cbf0 in mainline
- Timestamp:
- 2018-12-03T21:18:26Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 25cfc3d
- Parents:
- a8c09f91
- git-author:
- Matthieu Riolo <matthieu.riolo@…> (2018-12-03 21:17:06)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2018-12-03 21:18:26)
- Location:
- uspace/app/bdsh
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/alias/alias.c
ra8c09f91 r506cbf0 70 70 71 71 if (alias_link != NULL) { 72 / /update existing value72 /* update existing value */ 73 73 alias_t *data = odict_get_instance(alias_link, alias_t, odict); 74 74 free(data->value); 75 75 data->value = str_dup(value); 76 76 } else { 77 / /add new value77 /* add new value */ 78 78 alias_t *data = (alias_t *)calloc(1, sizeof(alias_t)); 79 79 data->name = str_dup(name); -
uspace/app/bdsh/input.c
ra8c09f91 r506cbf0 194 194 if (alias_link != NULL) { 195 195 alias_t *data = odict_get_instance(alias_link, alias_t, odict); 196 / /check if the alias already has been resolved once196 /* check if the alias already has been resolved once */ 197 197 if (!find_alias_hup(data, alias_hups)) { 198 198 alias_hup_t *hup = (alias_hup_t *)calloc(1, sizeof(hup)); … … 208 208 for (i = 0; i < tokens_length; i++) { 209 209 if (i == cmd_replace_index) { 210 / /if there is a pipe symbol than cmd_token_start will point at the SPACE after the pipe symbol210 /* if there is a pipe symbol than cmd_token_start will point at the SPACE after the pipe symbol */ 211 211 if (tokens[i].type == TOKTYPE_SPACE) { 212 212 cmd_replace_index++; … … 221 221 } 222 222 223 / /reprocess input after string replace223 /* reprocess input after string replace */ 224 224 rc = process_input_nohup(usr, alias_hups); 225 225 usr->line = oldLine;
Note:
See TracChangeset
for help on using the changeset viewer.