Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The MSH same prefix name parse error #232

Closed
geniusgogo opened this issue Jan 14, 2014 · 0 comments
Closed

The MSH same prefix name parse error #232

geniusgogo opened this issue Jan 14, 2014 · 0 comments

Comments

@geniusgogo
Copy link
Contributor

ex:
finsh />help
RT-Thread shell commands:
js_main - JavaScript Interpreter load file
js - JavaScript Interpreter CLI
...
finsh />js
js_main

my code:
void js(void)
{
rt_kprintf("js\n");
}
MSH_CMD_EXPORT(js, JavaScript Interpreter CLI)

int
js_main(int argc, char** argv)
{
rt_kprintf("js_main\n");
}
MSH_CMD_EXPORT(js_main, JavaScript Interpreter load file)

this example,on MSH call js,but always call js_main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant