From: retro Date: 2022-10-30T22:39:40+00:00 Subject: [ruby-core:110548] [Ruby master Bug#19092] gem uninstall exit code when multiple gem are installed and no option is given on prompt Issue #19092 has been updated by retro (Josef ��im��nek). 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) We can continue in there. ---------------------------------------- Bug #19092: gem uninstall exit code when multiple gem are installed and no option is given on prompt https://bugs.ruby-lang.org/issues/19092#change-99874 * Author: megatux (Cristian Molina) * Status: Open * Priority: Normal * ruby -v: 3.1.2p20 , 2.7.5p203 * Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN ---------------------------------------- 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? -- https://bugs.ruby-lang.org/ Unsubscribe: