-
Notifications
You must be signed in to change notification settings - Fork 9
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
Plugin hides failure of command if stdin is closed #266
Comments
@dominics Thank you for raising this issue. We will investigate the cause. |
@dominics I'm not seeing this on the latest versions of @oclif/core (1.3.1) and plugin-not-found (2.3.1)
Can you try updating to those versions and seeing if this is still an issue? Thanks! |
Yes, this still seems to be an issue. Circling back with a command you can run/see. The original problem was happening on a private repository, so I've ported an open source project of mine from Oclif v1 to v2, to verify it's still happening in the latest versions, and to help with reproduction:
This is using @oclif/core 1.3.3 and plugin-not-found 2.3.1 - right up to date. Using the in-repo version of the run script above fails the same way (e.g. |
@dominics thanks for the response. Unfortunately, I don't think this is something our team is able to prioritize right now. However, we are more than happy to accept a PR if you want to find a solution yourself |
This issue has been linked to a new work item: W-15205956 |
When the plugin is installed, and the CLI is called with no available stdin (note:
<&-
is bash for "close stdin", but this also happens with e.g.< /dev/null
)Then, the CLI exits with a zero (successful) exit code, even though no command was found or executed, and no answer was given to the not-found prompt.
This should instead be an error exit code.
The text was updated successfully, but these errors were encountered: