mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-04 04:38:15 +00:00
feat(nsh): input (stdin) redirection
This adds support for `<` to redirect input on nsh commands.
This commit is contained in:
parent
875f2fcc1e
commit
96100b30f2
11 changed files with 269 additions and 120 deletions
|
|
@ -182,7 +182,7 @@ int main(int argc, FAR char *argv[])
|
|||
}
|
||||
|
||||
bypass[0] = (FAR char *)builtin->name;
|
||||
ret = exec_builtin(builtin->name, bypass, NULL, 0);
|
||||
ret = exec_builtin(builtin->name, bypass, NULL, NULL, 0);
|
||||
if (ret >= 0)
|
||||
{
|
||||
waitpid(ret, &ret, WUNTRACED);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue