Changeset 39463ff in mainline


Ignore:
Timestamp:
2008-09-14T17:33:47Z (16 years ago)
Author:
Tim Post <echo@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cbe405c
Parents:
e13fb10
Message:

Add skeletal sleep and cp commands (not yet working)

Location:
uspace/app/bdsh
Files:
8 added
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/Makefile

    re13fb10 r39463ff  
    6565        cmds/modules/ls/ \
    6666        cmds/modules/pwd/ \
     67        cmds/modules/sleep/ \
     68        cmds/modules/cp/ \
    6769        cmds/builtins/ \
    6870        cmds/builtins/cd/
     
    7779        cmds/modules/ls/ls.c \
    7880        cmds/modules/pwd/pwd.c \
     81        cmds/modules/sleep/sleep.c \
     82        cmds/modules/cp/cp.c \
    7983        cmds/builtins/cd/cd.c \
    8084        cmds/mod_cmds.c \
  • uspace/app/bdsh/cmds/modules/modules.h

    re13fb10 r39463ff  
    2626#include "ls/entry.h"
    2727#include "pwd/entry.h"
     28#include "sleep/entry.h"
     29#include "cp/entry.h"
    2830
    2931/* Each .def function fills the module_t struct with the individual name, entry
     
    4042#include "ls/ls_def.h"
    4143#include "pwd/pwd_def.h"
     44#include "sleep/sleep_def.h"
     45#include "cp/cp_def.h"
    4246        {NULL, NULL, NULL, NULL}
    4347};
  • uspace/app/bdsh/util.c

    re13fb10 r39463ff  
    274274                snprintf(usr->cwd, PATH_MAX, "(unknown)");
    275275
    276         if (1 < cli_psprintf(&usr->prompt, "%s # ", usr->cwd)) {
     276        if (1 < cli_psprintf(&usr->prompt, "%s ", usr->cwd)) {
    277277                cli_error(cli_errno, "Failed to set prompt");
    278278                return 1;
Note: See TracChangeset for help on using the changeset viewer.