Changeset 3781092 in mainline for uspace/app/bdsh


Ignore:
Timestamp:
2011-09-09T18:22:33Z (15 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
40a2af3
Parents:
980671e7 (diff), 5da7199 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merge mainline changes

Location:
uspace/app/bdsh
Files:
4 added
6 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/Makefile

    r980671e7 r3781092  
    5151        cmds/modules/unmount/unmount.c \
    5252        cmds/modules/kcon/kcon.c \
     53        cmds/builtins/batch/batch.c \
    5354        cmds/builtins/exit/exit.c \
    5455        cmds/builtins/cd/cd.c \
  • uspace/app/bdsh/cmds/builtins/builtins.h

    r980671e7 r3781092  
    44#include "config.h"
    55
     6#include "batch/entry.h"
    67#include "cd/entry.h"
    78#include "exit/entry.h"
    89
    910builtin_t builtins[] = {
     11#include "batch/batch_def.h"
    1012#include "cd/cd_def.h"
    1113#include "exit/exit_def.h"
  • uspace/app/bdsh/cmds/modules/cat/cat.c

    r980671e7 r3781092  
    103103{
    104104        console_set_pos(console, 0, console_rows-1);
    105         console_set_color(console, COLOR_BLUE, COLOR_WHITE, 0);
     105        console_set_color(console, COLOR_WHITE, COLOR_BLUE, 0);
    106106       
    107107        printf("ENTER/SPACE/PAGE DOWN - next page, "
  • uspace/app/bdsh/cmds/modules/rm/rm.c

    r980671e7 r3781092  
    9595        if (NULL != rm->cwd)
    9696                free(rm->cwd);
    97 
    98         return;
    9997}
    10098
     
    129127                }
    130128        }
     129
     130        closedir(dirp);
    131131       
    132132        return ret;
  • uspace/app/bdsh/exec.c

    r980671e7 r3781092  
    134134                printf("%s: Failed waiting for command (%s)\n", progname,
    135135                    str_error(rc));
     136                return 1;
    136137        } else if (texit != TASK_EXIT_NORMAL) {
    137138                printf("%s: Command failed (unexpectedly terminated)\n", progname);
     139                return 1;
    138140        } else if (retval != 0) {
    139141                printf("%s: Command failed (exit code %d)\n",
    140142                    progname, retval);
     143                return 1;
    141144        }
    142145
  • uspace/app/bdsh/input.c

    r980671e7 r3781092  
    196196                new_iostate.stdout = to;
    197197        }
    198        
     198
    199199        rc = run_command(cmd, usr, &new_iostate);
    200200       
Note: See TracChangeset for help on using the changeset viewer.