Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nsh_parse.c: fix 'while' and 'until' loop condition
The loop condition logic was inverted: while true; do echo "test"; done would exit immediately, while using 'until' would stay in the loop. This is the opposite of how it is supposed to work. The reason is that 'state' was set wrong because 'whilematch' is a bool.
- Loading branch information
@bkueng what is the origin of this? Was this already fixed in upstream? Did it go upstream? Should this be marked BACKPORT?