aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--os/various/shell.c4
-rw-r--r--readme.txt2
2 files changed, 4 insertions, 2 deletions
diff --git a/os/various/shell.c b/os/various/shell.c
index 611da6de0..9feef152a 100644
--- a/os/various/shell.c
+++ b/os/various/shell.c
@@ -156,10 +156,10 @@ static msg_t shell_thread(void *p) {
chprintf(chp, "\r\nlogout");
break;
}
- lp = _strtok(line, " \009", &tokp);
+ lp = _strtok(line, " \t", &tokp);
cmd = lp;
n = 0;
- while ((lp = _strtok(NULL, " \009", &tokp)) != NULL) {
+ while ((lp = _strtok(NULL, " \t", &tokp)) != NULL) {
if (n >= SHELL_MAX_ARGUMENTS) {
chprintf(chp, "too many arguments\r\n");
cmd = NULL;
diff --git a/readme.txt b/readme.txt
index 842099896..532752cee 100644
--- a/readme.txt
+++ b/readme.txt
@@ -82,6 +82,8 @@
*****************************************************************************
*** 2.5.2 ***
+- FIX: Fixed small bug in shell argument parsing code in shell_thread (bug
+ 3599328)(backported to 2.4.4).
- FIX: Fixed wrong condition in checksum offload of STM32 MAC driver (bug
3598720)(backported to 2.4.4).
- FIX: Fixed error in STM32 MAC driver degrades performance (bug 3598719)