Aubr.Cool
e4fea38726
[Components] correct msh argc too many error
2017-07-19 15:34:15 +08:00
Bernard Xiong
f4248a95c3
[Finsh] Add script feature for msh.
2015-10-11 15:38:08 +08:00
Bernard Xiong
340a013f53
[finsh] export system symbol
2015-09-02 11:24:41 +08:00
Grissiom
23cc390474
msh: check path is non-null in msh_auto_complete_path
2014-10-14 16:07:19 +08:00
bernard
a8b0fe3f36
[shell] Fix compiling issue when DFS is not enable
2014-09-11 12:47:25 +08:00
Grissiom
a95370aa56
msh: remove usless ptr set
...
The ptr is set in the following code. So remove the first one.
2014-04-12 16:57:14 +08:00
bernard
8bd3e6f6dc
[Kernel] Change command line to const parameter and add system() function.
2014-04-02 14:05:15 +08:00
Grissiom
0979328fb1
[msh] don't complain on empty command
...
Just branch out and no complain on command length == 0;
2014-03-29 11:33:20 +08:00
Grissiom
c44f32e513
[msh] cd to path when possible
...
When DFS_USING_WORKDIR is enabled, msh will try to chdir if the command
is not found. For example, if there is folder named "SD", and there is
no `SD` command and `SD.mo` module, typing "SD" in msh will cd to the
folder.
In more detail, the execution order right now is:
1. built-in command
2. module
3. cd to path
If you have a folder named "ps", you have to run `cd ps` to change the
working dir.
2014-03-27 16:41:26 +08:00
Grissiom
f9659283c0
[msh] try to complete module path
...
Msh can execute module directly. So try to auto-complete the path when
user press TAB. There is a chance that the path is a module.
2014-03-27 15:09:53 +08:00
bernard
32a6f5b730
[Finsh] remove the .mo display when command is not found.
2014-02-15 10:28:38 +08:00
bernard
ae891e2011
[Finsh] fix strncmp issue in command search
2014-01-16 22:22:23 +08:00
roamboy
1c8693c87e
Update msh.c
2014-01-13 15:57:13 +08:00
roamboy
1df4c1b962
Update msh.c
2014-01-13 15:56:20 +08:00
roamboy
849130da2c
Update msh.c
...
fix msh_exec(char* cmd, rt_size_t length) bug
2014-01-13 15:52:23 +08:00
bernard
31446eab4c
[Kernel] application module can support arguments
2014-01-11 16:33:31 +08:00
bernard
1f8a0668d2
[Finsh] Add features to execute module.
2014-01-03 08:01:24 +08:00
bernard
b924104129
Add FINSH_USING_MSH_ONLY option
2014-01-01 23:14:45 +08:00
bernard
a5ba2a24f7
add file and path name auto completion for module shell
2014-01-01 21:45:09 +08:00
Bernard Xiong
97eadb7d8e
implement a shell for module
2013-03-30 16:14:38 +08:00