Changeset 19


Ignore:
Timestamp:
Oct 18, 2002, 1:02:18 AM (23 years ago)
Author:
bird
Message:

Bed time.

Location:
trunk
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/kmkdocs.c

    r17 r19  
    137137 *
    138138 *
     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 *
    139154 * @subsubsubsection    rm
    140155 * Deletes one or more files.
     
    146161 * This command fails if it cannot delete a file. It will not fail if a file
    147162 * 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.
    148175 *
    149176 *
     
    215242 *
    216243 *
     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 *
    217258 */
  • trunk/src/kShell/kShellMain.c

    r18 r19  
    3030#include "kShell.h"
    3131#include <string.h>
    32 #include <stdio.h>
    3332
    3433
     
    6665    else
    6766    {
    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();
    7968    }
    8069
Note: See TracChangeset for help on using the changeset viewer.