-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
REGRESSION: CLI prompts for interaction in non-TTY environment in 2.30.7 (doesn't in 2.29.5 and older) #2739
Comments
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
This issue has been linked to a new work item: W-15100925 |
Hey @daveespo, |
@iowillhoit -- yep, on Thank you @mdonnalley for the quick turnaround And FTR, I do think the current behavior is a bug .. the fact that trying to run an invalid command returns a 0 error code in a non-TTY environment (when it returns a 127 in TTY), is unexpected. But if you're going to change that in the future, please make sure it hits the release notes with a preparation period to let people know it's coming. |
@mdonnalley -- any chance this code regressed in Yesterday's RC ( CC @mshanemc |
@daveespo Yes, that's the expected behavior now. Checkout the release notes for the 2.35.6
|
Summary
The CLI has historically not prompted for user interaction in non-TTY environments. Starting in 2.30.7 (next week's release candidate), the CLI will prompt and wait for input before timing out and returning a non-zero error code. Prior versions would exit immediately and return a zero status code.
It's debatable whether this was a feature or a bug -- but there is definitely a change in behavior here that isn't in the release notes.
Steps To Reproduce
On 2.29.5
On 2.30.5
Note The command waited for 5 seconds before it finally generated the error. Additionally, it exited with a non-zero status code (127) compared with the zero (0) exit code when run on 2.29.5
Expected result
Prior behavior was to exit immediately and return a zero exit code
Actual result
Command waits 5 seconds for user interaction then exits with 127 exit code
System Information
The text was updated successfully, but these errors were encountered: