Bug #19868
closed`Process::Status` methods for compatibility with `Fixnum`
Description
Looking at 54274b8c65a0981f1c69055a1513ba3c614dd675, noticed that pst_rshift contains shift by a negative integer, an unspecified behavior in C99.
I think an exception would be ok for such argument, also we can suggest alternative methods to encourage the transition.
https://github.com/nobu/ruby/tree/process_status-fixnum-compatibility
https://github.com/ruby/ruby/pull/8392
        
           Updated by nobu (Nobuyoshi Nakada) about 2 years ago
          Updated by nobu (Nobuyoshi Nakada) about 2 years ago
          
          
        
        
      
      - Description updated (diff)
        
           Updated by nobu (Nobuyoshi Nakada) about 2 years ago
          Updated by nobu (Nobuyoshi Nakada) about 2 years ago
          
          
        
        
      
      - Status changed from Open to Closed
Applied in changeset git|b6de0a6c69a4857ca4347f65d7c9a5cb6e52c5bd.
[Bug #19868] Suggest other Process::Status method for & and >>
Process::Status#& and Process::Status#>> are provided only for
the backward compatibility with older Ruby than 1.8 where $? was
a Fixnum, and the knowledge about internals of system dependent
macros is necessary to use them.  Modern programs and libraries
should not need these methods.