
Issue #19691 has been updated by nobu (Nobuyoshi Nakada). Tracker changed from Bug to Misc Status changed from Open to Feedback Backport deleted (3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN) I think it has changed since 3.1. ```shell-session $ ruby3.0 -v -W0 -rsingleton -rSingleton -e 'p $"[-2..-1]' ruby 3.0.6p216 (2023-03-30 revision 23a532679b) [x86_64-darwin22] /opt/local/lib/ruby/3.0.0/Singleton.rb:152:in `undef_method': undefined method `extend_object' for class `Singleton' (NameError) Did you mean? extended from /opt/local/lib/ruby/3.0.0/Singleton.rb:152:in `singleton class' from /opt/local/lib/ruby/3.0.0/Singleton.rb:140:in `<module:Singleton>' from /opt/local/lib/ruby/3.0.0/Singleton.rb:94:in `<top (required)>' from <internal:/opt/local/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require' from <internal:/opt/local/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require' bash: exit 1 $ ruby3.1 -v -rsingleton -rSingleton -e 'p $"[-2..-1]' ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x86_64-darwin22] ["/opt/local/lib/ruby/3.1.0/did_you_mean.rb", "/opt/local/lib/ruby/3.1.0/singleton.rb"] ``` ---------------------------------------- Misc #19691: Case insensitive file systems, require filename casing https://bugs.ruby-lang.org/issues/19691#change-103274 * Author: MSP-Greg (Greg L) * Status: Feedback * Priority: Normal ---------------------------------------- I don't know what I think of this (expected or bug), but recently in a forum I saw an issue that I don't recall accidentally doing myself. An equivalent example: ``` ruby -rsingleton -rSingleton -e "puts 'case issue'" ``` Note the change of casing with `Singleton`. On case insensitive file systems, the above will double load the file, which errors. Obviously, on case sensitive file systems, it errors with `cannot load such file -- Singleton` So, options are: A. No change to current behavior, which I'm fine with. B. If the OS is case insensitive, don't reload the file, and maybe a warning that `Singleton` and `singleton` are equivalent. -- https://bugs.ruby-lang.org/