diff options
author | Chris Johns <chrisj@rtems.org> | 2009-01-23 00:12:31 +0000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2009-01-23 00:12:31 +0000 |
commit | 731186395aba9bd8585ac77ff288ddfa0bc04c8b (patch) | |
tree | 664867d1a7c33c02c04a1938accc20b5479c9a25 /cpukit | |
parent | Remove. (diff) | |
download | rtems-731186395aba9bd8585ac77ff288ddfa0bc04c8b.tar.bz2 |
2009-01-23 Chris Johns <chrisj@rtems.org>
* libmisc/shell/shell.c: Fix command line parsing of valid
characters.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/ChangeLog | 5 | ||||
-rw-r--r-- | cpukit/libmisc/shell/shell.c | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index afaf4296b5..792a09e565 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,8 @@ +2009-01-23 Chris Johns <chrisj@rtems.org> + + * libmisc/shell/shell.c: Fix command line parsing of valid + characters. + 2009-01-21 Nickolay Kolchin <nbkolchin@gmail.com> Joel Sherrill <joel.sherrill@oarcorp.com> diff --git a/cpukit/libmisc/shell/shell.c b/cpukit/libmisc/shell/shell.c index 0a784ba712..e5ed33dc2b 100644 --- a/cpukit/libmisc/shell/shell.c +++ b/cpukit/libmisc/shell/shell.c @@ -311,7 +311,6 @@ int rtems_shell_line_editor( break; case '\b': - case '\x7e': case '\x7f': if (col > 0) { @@ -353,7 +352,7 @@ int rtems_shell_line_editor( return cmd; default: - if ((col < (size - 1)) && (c >= ' ') && (c <= 'z')) { + if ((col < (size - 1)) && (c >= ' ') && (c <= '~')) { int end = strlen (line); if (inserting && (col < end) && (end < size)) { int ch, bs; |