Actions
Bug #19092
closedgem uninstall exit code when multiple gem are installed and no option is given on prompt
Status:
Third Party's Issue
Assignee:
-
Target version:
-
ruby -v:
3.1.2p20 , 2.7.5p203
Description
When there are several versions of a gem to uninstall and there is a prompt with all the installed versions and it is waiting for the number of the option to uninstall, if you press ENTER then it displays an error message like this
Error: must enter a number [1-3]
and exits. That's fine but checking the exit code for this with echo $?
it shows 0. Shouldn't be something different than zero if it exited with an error message?
Updated by retro (Josef Šimánek) about 2 years ago
Hello! This seems a valid problem report, I tried locally and I can reproduce. Can you open your issue at rubygems issue tracker please? (https://github.com/rubygems/rubygems/issues/new?assignees=&labels=RubyGems&template=rubygems-related-issue.md&title=) We can continue in there.
Updated by hsbt (Hiroshi SHIBATA) about 2 years ago
- Status changed from Open to Third Party's Issue
Actions
Like1
Like0Like0