Changeset 6ea9a1d in mainline for uspace/app/bdsh/exec.c


Ignore:
Timestamp:
2011-06-11T22:32:24Z (13 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
36ab7c7
Parents:
ae45201
Message:

Allow shell builtins to be redirected too

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/exec.c

    rae45201 r6ea9a1d  
    112112}
    113113
    114 unsigned int try_exec(char *cmd, char **argv, FILE **files)
     114unsigned int try_exec(char *cmd, char **argv, iostate_t *io)
    115115{
    116116        task_id_t tid;
     
    120120        fdi_node_t file_nodes[3];
    121121        fdi_node_t *file_nodes_p[4];
     122        FILE *files[3];
    122123
    123124        tmp = str_dup(find_command(cmd));
    124125        free(found);
     126       
     127        files[0] = io->stdin;
     128        files[1] = io->stdout;
     129        files[2] = io->stderr;
    125130       
    126131        for (i = 0; i < 3 && files[i] != NULL; i++) {
Note: See TracChangeset for help on using the changeset viewer.