Skip to content

Conversation

@casaroli
Copy link
Contributor

@casaroli casaroli commented Aug 10, 2024

Summary

The PR #2469 broke handling of environment variables because an error in the if/else if control flow. I am sorry.

Thank you @tmedicci for reporting the problem. Here is the fix.

Impact

Fixes #2474:

NuttShell (NSH) NuttX-12.5.1
nsh> ls
/:
 bin/
 dev/
 etc/
 proc/
 tmp/
nsh> echo $?
0
nsh> ls lalala
nsh: ls: stat failed: 2
nsh> echo $?
1
nsh> ls lalala
nsh: ls: stat failed: 2
nsh> echo $? > /tmp/out
nsh> cat < /tmp/out
1
nsh> 

Testing

Manually

The PR apache#2469 broke handling of environment variables because an
error in the if/else if control flow.

This fixes it.
@acassis acassis merged commit 0797ee2 into apache:master Aug 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants