apps/nshlib: Add support for '-n' option to the echo command.

This commit is contained in:
Masayuki Ishikawa
2018-01-10 07:23:28 -06:00
committed by Gregory Nutt
parent f8d683c590
commit 8ecf618a4d
3 changed files with 24 additions and 23 deletions

View File

@@ -186,9 +186,9 @@ static const struct cmdmap_s g_cmdmap[] =
#ifndef CONFIG_NSH_DISABLE_ECHO
# ifndef CONFIG_DISABLE_ENVIRON
{ "echo", cmd_echo, 1, CONFIG_NSH_MAXARGUMENTS, "[<string|$name> [<string|$name>...]]" },
{ "echo", cmd_echo, 1, CONFIG_NSH_MAXARGUMENTS, "[-n] [<string|$name> [<string|$name>...]]" },
# else
{ "echo", cmd_echo, 1, CONFIG_NSH_MAXARGUMENTS, "[<string> [<string>...]]" },
{ "echo", cmd_echo, 1, CONFIG_NSH_MAXARGUMENTS, "[-n] [<string> [<string>...]]" },
# endif
#endif