General

Profile

vais (Vais Salikhov)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 4 5

Activity

03/11/2017

05:43 AM Ruby Feature #9453: Return symbols of defined methods for `attr` and friends
`attr_*` methods returning `nil` should be considered a bug at this point, since all other ways of defining methods return a symbol. This makes Ruby inconsistent, and violates its own Principle of Least Surprise. vais (Vais Salikhov)

03/31/2016

05:07 AM Ruby Bug #12234 (Rejected): Kernel#exec with a command array broken on Windows as of Ruby 2.2.4
On Ruby 2.0.0 this worked as expected:
```
C:\Users\Administrator\GitHub\spec>ruby -ve "exec(['cmd.exe', '/C'], 'echo', 'argv_zero')"
ruby 2.0.0p247 (2013-06-27) [i386-mingw32]
argv_zero
```
On Ruby 2.2.4 it is broken - it seems ...
vais (Vais Salikhov)

03/30/2016

09:45 AM Ruby Bug #12231 (Rejected): Kernel#system should not expand shell variables when given multiples arguments, but on Windows it does
```
C:\Users\Administrator>C:\Ruby\ruby-2.2.4-i386-mingw32\bin\ruby.exe -ve "ENV['TEST_SH_EXPANSION'] = 'foo'; p system('echo', '%TEST_SH_EXPANSION%')"
ruby 2.2.4p230 (2015-12-16 revision 53155) [i386-mingw32]
foo
true
```
vais (Vais Salikhov)
09:04 AM Ruby Bug #12230 (Closed): Wrong exception raised when IO.read from a pipe is passed an offset on Windows
When IO.read from a pipe is passed an offset, the expected exception is Errno::ESPIPE, but on Windows Invalid argument (Errno::EINVAL) is raised instead:
```
C:\Users\Administrator\Desktop>C:\Ruby\ruby-2.2.4-i386-mingw32\bin\ruby.exe...
vais (Vais Salikhov)

03/28/2016

08:51 AM Ruby Feature #12226 (Open): Dir.home with valid named user raises ArgumentError on Windows
```
C:\>C:\Ruby\ruby-2.2.4-x64-mingw32\bin\ruby.exe -ve "p Dir.home; p Dir.home('Administrator')"
ruby 2.2.4p230 (2015-12-16 revision 53155) [x64-mingw32]
"C:/Users/Administrator"
-e:1:in `home': user Administrator doesn't exist (Arg...
vais (Vais Salikhov)

11/20/2015

02:38 AM Ruby Bug #11718 (Closed): Constant access on `nil`
It is possible to access top-level constants by doing `nil::CONSTANT`, which looks like a bug [according to Matz](https://github.com/opal/opal/issues/1197#issuecomment-158078778). Here are a couple of examples:
```
$ ruby -ve "Foo = ...
vais (Vais Salikhov)

Also available in: Atom