Changeset 19
- Timestamp:
- Oct 18, 2002, 1:02:18 AM (23 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/kmkdocs.c
r17 r19 137 137 * 138 138 * 139 * @subsubsubsection copytree 140 * Copies one or more files to a target file or directory. 141 * 142 * <b>Syntax: copytree <source directory> <target directory> </b> 143 * 144 * Specify exactly one source directory. 145 * 146 * Specify exactly one target directory. The target directory path will be 147 * created if doesn't exist. 148 * 149 * The command fails if source directory isn't found. It also fails on read or 150 * write errors. 151 * 152 * 153 * 139 154 * @subsubsubsection rm 140 155 * Deletes one or more files. … … 146 161 * This command fails if it cannot delete a file. It will not fail if a file 147 162 * doesn't exist. It will neither fail if no files are specified. 163 * 164 * 165 * 166 * @subsubsubsection rmtree 167 * Deletes one or more directory trees. 168 * 169 * <b>Syntax: rmtree [directory pattern] [directories] </b> 170 * 171 * Specify 0 or more directory patterns for deletion. 172 * 173 * This command fails if it cannot delete a file or directory. It will not fail 174 * if a directory doesn't exist. It will neither fail if no files are specified. 148 175 * 149 176 * … … 215 242 * 216 243 * 244 * 245 * @subsubsubsection echo 246 * Prints a message to stdout. 247 * 248 * <b>Syntax: echo <level> <message> 249 * 250 * Level is verbosity level of the message. This is compared with the 251 * KBUILD_MSG_LEVEL environment variable. The message is suppressed if the 252 * level is lower that KBUILD_MSG_LEVEL. 253 * 254 * The message can be empty. Then a blank line will be printed. 255 * 256 * 257 * 217 258 */ -
trunk/src/kShell/kShellMain.c
r18 r19 30 30 #include "kShell.h" 31 31 #include <string.h> 32 #include <stdio.h>33 32 34 33 … … 66 65 else 67 66 { 68 while (fgets(&szCmd[0], sizeof(szCmd), stdin)) 69 { 70 char *pszEnd = &szCmd[strlen(&szCmd[0]) - 1]; 71 while (pszEnd >= &szCmd[0] && (*pszEnd == '\n' || *pszEnd == '\r')) 72 *pszEnd-- = '\0'; 73 74 if (!strcmp(&szCmd[0], "exit")) 75 break; 76 77 rc = kshellExecute(&szCmd[0]); 78 } 67 rc = kshellInteractive(); 79 68 } 80 69
Note:
See TracChangeset
for help on using the changeset viewer.