Xiang Xiao
9d80399bd5
nsh: Accept the command line arguments like sh
...
Usage: nsh [<script-path>|-c <command>]
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ifb76b27e7fd09d26b1f6e48c391fed0972018041
2020-08-19 14:32:53 -07:00
Xiang Xiao
650b58d6b2
nshlib: Fix nxstyle warning
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-19 08:07:06 -06:00
Xiang Xiao
3f9302561c
nshlib: Enhance nsh to execute the shell script
...
and support the interactive shell too
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-19 08:07:06 -06:00
Xiang Xiao
857158451b
Unify the void cast usage
...
1.Remove void cast for function because many place ignore the returned value witout cast
2.Replace void cast for variable with UNUSED macro
Change-Id: Ie644129a563244a6397036789c4c3ea83c4e9b09
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-01-02 23:21:01 +08:00
Gregory Nutt
2c8ac4440a
apps/nshlib: Don't try to flush output streams if stdio buffered I/O is not supported.
2016-10-06 08:36:15 -06:00
Neil Hancock
7fc401d3c1
Correct an assertion
2016-09-12 07:26:37 -06:00
Gregory Nutt
e39cfc97c7
Add logic to support an NSH-specific system command
2016-08-25 11:34:36 -06:00