You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Misleading OK error code if there is an error in a for loop #8569
Activity
presidento commentedon Mar 22, 2023
It is the same in version
0.77.1rgwood commentedon Mar 23, 2023
If anyone wants to take a look at this, the relevant code is here:
nushell/crates/nu-cmd-lang/src/core_commands/for_.rs
Lines 124 to 126 in 66ad83c
And here:
nushell/crates/nu-cmd-lang/src/core_commands/for_.rs
Lines 166 to 168 in 66ad83c
forprobably needs to return an error instead of just callingbreak.Error on non-zero exit statuses (nushell#13515)