jasonbu opened a new pull request, #2522:
URL: https://github.com/apache/nuttx-apps/pull/2522
## Summary
the spawn used many times inside nsh, also will case the cmd in g_cmdmap,
not able to support &, etc.
we should make all spawn within one entry.
## Impact
before fix, spawn feature used many times.
after fix, spawn from nsh all from nsh_spawn.c
## Testing
enable tmpfs and work with qemu-armv8a,
```C
int main(int argc, FAR char *argv[])
{
char buffer[100];
fgets(buffer, 100, stdin);
printf("Hello, World!!\n");
printf("stdin %s\n", buffer);
return 0;
}
```
```bash
cd tmp
hello
hello > a
hello < a
hello >> a
hello >> a &
hello < a >> a &
```
works as expect
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]