[#80974] [Ruby trunk Feature#13517] [PATCH] reduce rb_mutex_t size from 160 to 80 bytes on 64-bit — ko1@...
Issue #13517 has been updated by ko1 (Koichi Sasada).
4 messages
2017/05/02
[#81024] Re: [Ruby trunk Feature#13517] [PATCH] reduce rb_mutex_t size from 160 to 80 bytes on 64-bit
— SASADA Koichi <ko1@...>
2017/05/07
sorry for late response.
[#80996] [Ruby trunk Feature#13544] Allow loading an ISeqs sequence directly from a C extension without requiring buffer is in an RVALUE — sam.saffron@...
Issue #13544 has been reported by sam.saffron (Sam Saffron).
3 messages
2017/05/04
[#81016] [Ruby trunk Bug#13526] Segmentation fault at 0x0055c2e58e8920 ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux] — s.wanabe@...
Issue #13526 has been updated by wanabe (_ wanabe).
3 messages
2017/05/07
[#81048] Re: [ruby-cvs:65788] normal:r58614 (trunk): rb_execution_context_t: move stack, stack_size and cfp from rb_thread_t — SASADA Koichi <ko1@...>
It causes compile error on raspi 3.
3 messages
2017/05/09
[#81201] Re: [ruby-cvs:65935] normal:r58761 (trunk): test/test_extilibs.rb: do not check the existence of fiddle — "U.NAKAMURA" <usa@...>
Hi, Eric
4 messages
2017/05/16
[#81202] Re: [ruby-cvs:65935] normal:r58761 (trunk): test/test_extilibs.rb: do not check the existence of fiddle
— Eric Wong <normalperson@...>
2017/05/16
"U.NAKAMURA" <usa@garbagecollect.jp> wrote:
[#81427] Fwd: [ruby-changes:46809] normal:r58924 (trunk): test for IO.copy_stream CPU usage (r58534) — SASADA Koichi <ko1@...>
Hi,
6 messages
2017/05/28
[#81428] Re: Fwd: [ruby-changes:46809] normal:r58924 (trunk): test for IO.copy_stream CPU usage (r58534)
— Eric Wong <normalperson@...>
2017/05/28
SASADA Koichi <ko1@atdot.net> wrote:
[ruby-core:81070] [Ruby trunk Bug#13444] compatibility breaking change: backticks is not evalueted as shell script call while in "unless" operator context
From:
nagachika00@...
Date:
2017-05-09 15:14:00 UTC
List:
ruby-core #81070
Issue #13444 has been updated by nagachika (Tomoyuki Chikanaga).
Backport changed from 2.2: DONTNEED, 2.3: DONTNEED, 2.4: REQUIRED to 2.2: DONTNEED, 2.3: DONTNEED, 2.4: DONE
ruby_2_4 r58634 merged revision(s) 58398.
----------------------------------------
Bug #13444: compatibility breaking change: backticks is not evalueted as shell script call while in "unless" operator context
https://bugs.ruby-lang.org/issues/13444#change-64721
* Author: dikderoy (Roman Bulgakov)
* Status: Closed
* Priority: Normal
* Assignee:
* Target version:
* ruby -v: ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
* Backport: 2.2: DONTNEED, 2.3: DONTNEED, 2.4: DONE
----------------------------------------
Ruby versions from 2.0 to 2.3.x while executing shell script via backticks inside of "unless" construction had it executed and evalueted output as condition,
version 2.4 and onwards had condition evaluated as true but script is not executed.
I haven't find any note regarding such change in release-notes for 2.4.0 and 2.4.1
**Steps to reproduce:**
giving following code:
~~~ ruby
unless `touch abc.txt`
raise 'Error'
end
~~~
**Expected:**
cwd has a file abc.txt created
**Actual:**
cwd has no file abc.txt and no exception has been raised
----
**Test-case (with version comparison via rvm)**
file [test.rb]:
~~~ ruby
unless `touch test-#{RUBY_VERSION}`
raise 'Error'
end
begin
puts $?.success?
rescue StandardError => e
puts "rescued:#{e.message}"
end
s = `ls -l test-#{RUBY_VERSION}`
puts s.lines.length == 1 ? 'OK' : 'NOK'
~~~
exec:
**$ rvm list**
~~~ text
rvm rubies
ruby-2.0.0-p648 [ x86_64 ]
ruby-2.1.10 [ x86_64 ]
ruby-2.2.6 [ x86_64 ]
ruby-2.3.3 [ x86_64 ]
* ruby-2.4.0 [ x86_64 ]
=> ruby-2.4.1 [ x86_64 ]
~~~
**$ rvm all --verbose do ruby test.rb**
~~~ text
ruby-2.1.10: ruby 2.1.10p492 (2016-04-01 revision 54464) [x86_64-linux]
true
OK
ruby-2.2.6: ruby 2.2.6p396 (2016-11-15 revision 56800) [x86_64-linux]
true
OK
ruby-2.0.0-p648: ruby 2.0.0p648 (2015-12-16 revision 53162) [x86_64-linux]
true
OK
ruby-2.3.3: ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-linux]
true
OK
ruby-2.4.0: ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]
rescued:undefined method `success?' for nil:NilClass
NOK
ruby-2.4.1: ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
rescued:undefined method `success?' for nil:NilClass
NOK
~~~
**$ ls -l test-***
~~~ text
-rw-rw-r-- 1 user user 0 апр. 17 23:50 test-2.0.0
-rw-rw-r-- 1 user user 0 апр. 17 23:50 test-2.1.10
-rw-rw-r-- 1 user user 0 апр. 17 23:50 test-2.2.6
-rw-rw-r-- 1 user user 0 апр. 17 23:50 test-2.3.3
~~~
**OS:** Ubuntu 14.04
**cat /etc/debian_version:** jessie/sid
**uname -isoprvm:** Linux 3.13.0-116-generic #163-Ubuntu SMP Fri Mar 31 14:13:22 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
---Files--------------------------------
test.rb (218 Bytes)
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>