mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-17 07:12:06 +08:00
feat(nsh): input (stdin) redirection
This adds support for `<` to redirect input on nsh commands.
This commit is contained in:

committed by
Alan Carvalho de Assis

parent
875f2fcc1e
commit
96100b30f2
@@ -98,6 +98,10 @@ static int nsh_clone_console(FAR struct console_stdio_s *pstate)
|
||||
|
||||
OUTFD(pstate) = 1;
|
||||
|
||||
/* Setup stdin */
|
||||
|
||||
INFD(pstate) = 0;
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user