diff options
author | Chris Johns <chrisj@rtems.org> | 2008-01-05 06:57:17 +0000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2008-01-05 06:57:17 +0000 |
commit | a5de1ef5fc5b06d300e08dae2425d1bb88985645 (patch) | |
tree | 6e06dcd3f1c8fa3d93c25e7cc0d77c51b4a99700 /cpukit/libmisc/shell/shell.c | |
parent | 2008-01-03 Till Straumann <strauman@slac.stanford.edu> (diff) | |
download | rtems-a5de1ef5fc5b06d300e08dae2425d1bb88985645.tar.bz2 |
2008-01-05 Chris Johns <chrisj@rtems.org>
* configure.ac: Fix typo in the strict order mutex CPU OPTs test.
* libmisc/shell/shell.c: Handle '#' comment characters correctly.
* libblock/include/rtems/flashdisk.h: Add docmentation about the
control fields. Add more control fields to handle the flash when
full.
* libblock/src/flashdisk.c: Fix the descriptor erase test so it
detects a descriptor is erased. Add support for unavailable blocks
the user can configure. Print the used list as a diag. Fix the bug
when a page is detected as failed and present on more than one
queue. Add a count to the queues so queue length can be used to
manage compaction.
Diffstat (limited to 'cpukit/libmisc/shell/shell.c')
-rw-r--r-- | cpukit/libmisc/shell/shell.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cpukit/libmisc/shell/shell.c b/cpukit/libmisc/shell/shell.c index 267ce203fa..78c916ecbe 100644 --- a/cpukit/libmisc/shell/shell.c +++ b/cpukit/libmisc/shell/shell.c @@ -498,8 +498,11 @@ rtems_boolean rtems_shell_main_loop( if (*c == '\0') /* empty line */ continue; - if (*c == '#') /* comment character */ + + if (*c == '#') { /* comment character */ + cmd[0] = 0; continue; + } if (!strcmp(cmd,"e")) { /* edit last command */ strcpy(cmd,last_cmd); |