Changeset 1433ecda in mainline for uspace/app/bdsh/cmds/builtins
- Timestamp:
- 2018-04-04T15:42:37Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- Location:
- uspace/app/bdsh/cmds/builtins
- Files:
-
- 3 edited
-
batch/batch.c (modified) (1 diff)
-
builtins.h (modified) (1 diff)
-
cd/cd.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/builtins/batch/batch.c
r47b2d7e3 r1433ecda 48 48 if (level == HELP_SHORT) { 49 49 printf( 50 "\n batch [filename] [-c]\n"51 " Issues commands stored in the file.\n"52 " Each command must correspond to the single line in the file.\n\n");50 "\n batch [filename] [-c]\n" 51 " Issues commands stored in the file.\n" 52 " Each command must correspond to the single line in the file.\n\n"); 53 53 } else { 54 54 printf( 55 "\n `batch' - issues a batch of commands\n"56 " Issues commands stored in the file. Each command must correspond\n"57 " to the single line in the file. Empty lines can be used to visually\n"58 " separate groups of commands. There is no support for comments,\n"59 " variables, recursion or other programming constructs - the `batch'\n"60 " command is indeed very trivial.\n"61 " If the filename is followed by -c, execution continues even if some\n"62 " of the commands failed.\n\n");55 "\n `batch' - issues a batch of commands\n" 56 " Issues commands stored in the file. Each command must correspond\n" 57 " to the single line in the file. Empty lines can be used to visually\n" 58 " separate groups of commands. There is no support for comments,\n" 59 " variables, recursion or other programming constructs - the `batch'\n" 60 " command is indeed very trivial.\n" 61 " If the filename is followed by -c, execution continues even if some\n" 62 " of the commands failed.\n\n"); 63 63 } 64 64 -
uspace/app/bdsh/cmds/builtins/builtins.h
r47b2d7e3 r1433ecda 12 12 #include "cd/cd_def.inc" 13 13 #include "exit/exit_def.inc" 14 { NULL, NULL, NULL, NULL, 0}14 { NULL, NULL, NULL, NULL, 0 } 15 15 }; 16 16 -
uspace/app/bdsh/cmds/builtins/cd/cd.c
r47b2d7e3 r1433ecda 72 72 } else { 73 73 printf( 74 " %s <directory>\n"75 " Change directory to <directory>, e.g `%s /sbin'\n",76 cmdname, cmdname);74 " %s <directory>\n" 75 " Change directory to <directory>, e.g `%s /sbin'\n", 76 cmdname, cmdname); 77 77 } 78 78 … … 113 113 if (argc < 2) { 114 114 printf("%s - no directory specified. Try `help %s extended'\n", 115 cmdname, cmdname);115 cmdname, cmdname); 116 116 return CMD_FAILURE; 117 117 }
Note:
See TracChangeset
for help on using the changeset viewer.
