2009-01-23 Chris Johns <chrisj@rtems.org>

* libmisc/shell/shell.c: Fix command line parsing of valid
	characters.
This commit is contained in:
Chris Johns
2009-01-23 00:12:31 +00:00
parent 5ad3a91e71
commit 731186395a
2 changed files with 6 additions and 2 deletions

View File

@@ -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> 2009-01-21 Nickolay Kolchin <nbkolchin@gmail.com>
Joel Sherrill <joel.sherrill@oarcorp.com> Joel Sherrill <joel.sherrill@oarcorp.com>

View File

@@ -311,7 +311,6 @@ int rtems_shell_line_editor(
break; break;
case '\b': case '\b':
case '\x7e':
case '\x7f': case '\x7f':
if (col > 0) if (col > 0)
{ {
@@ -353,7 +352,7 @@ int rtems_shell_line_editor(
return cmd; return cmd;
default: default:
if ((col < (size - 1)) && (c >= ' ') && (c <= 'z')) { if ((col < (size - 1)) && (c >= ' ') && (c <= '~')) {
int end = strlen (line); int end = strlen (line);
if (inserting && (col < end) && (end < size)) { if (inserting && (col < end) && (end < size)) {
int ch, bs; int ch, bs;