feat(nsh): input (stdin) redirection

This adds support for `<` to redirect input on nsh commands.
This commit is contained in:
Marco Casaroli
2024-08-06 23:29:50 +02:00
committed by Alan Carvalho de Assis
parent 875f2fcc1e
commit 96100b30f2
11 changed files with 269 additions and 120 deletions

View File

@@ -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;
}