[#86787] [Ruby trunk Feature#14723] [WIP] sleepy GC — ko1@...

Issue #14723 has been updated by ko1 (Koichi Sasada).

13 messages 2018/05/01
[#86790] Re: [Ruby trunk Feature#14723] [WIP] sleepy GC — Eric Wong <normalperson@...> 2018/05/01

ko1@atdot.net wrote:

[#87095] [Ruby trunk Feature#14767] [PATCH] gc.c: use monotonic counters for objspace_malloc_increase — ko1@...

Issue #14767 has been updated by ko1 (Koichi Sasada).

9 messages 2018/05/17
[#87096] Re: [Ruby trunk Feature#14767] [PATCH] gc.c: use monotonic counters for objspace_malloc_increase — Eric Wong <normalperson@...> 2018/05/17

ko1@atdot.net wrote:

[ruby-core:87079] [Ruby trunk Feature#14765] Arguments passed to Open3.popen3() are not interpreted as regular expressions

From: reddy.rushyanth@...
Date: 2018-05-16 13:09:50 UTC
List: ruby-core #87079
Issue #14765 has been updated by Rushyanth (Rushyanth reddy).


In console when we write
```stdin, stdout, stderr, wait_thr = Open3.popen4("cat .*.yml")```
All the files with names starting with ```.``` and ending in ```.yml``` are shown
But when we do

```stdin, stdout, stderr, wait_thr = Open3.popen4("cat", ".*.yml")```

```stdout.readlines```

It returns an empty array

```stderr.readlines``` says  ```["cat: .*.yml: No such file or directory\n"]``` 

Because it is interpreting the string arguments as it is and looking for a file with name ```.*.yml``` and not interpreting as in the first case.

----------------------------------------
Feature #14765: Arguments passed to Open3.popen3() are not interpreted as regular expressions
https://bugs.ruby-lang.org/issues/14765#change-72044

* Author: Rushyanth (Rushyanth reddy)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
----------------------------------------
In console when we write
```stdin, stdout, stderr, wait_thr = Open3.popen4("cat .*.yml")```
```stdout.readlines``` 
All the files with names starting with ```.``` and ending in ```.yml``` are shown
But when we do
```stdin, stdout, stderr, wait_thr = Open3.popen4("cat", ".*.yml")```
```stdout.readlines```
It returns an empty array
```stderr.readlines``` says  ```["cat: .*.yml: No such file or directory\n"]``` 
Because it is interpreting the string arguments as it is and looking for a file with name ```.*.yml``` and not interpreting as in the first case.



-- 
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>

In This Thread

Prev Next