JohanJosefsson (Johan Josefsson)
- Login: JohanJosefsson
- Registered on: 07/12/2022
- Last sign in: 07/31/2022
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 2 | 2 |
Activity
08/05/2022
-
08:02 PM Ruby Bug #18909: ARGF.readlines reads more than current file
- mame (Yusuke Endoh) wrote in #note-14:
> Is this what you want?
> ...
Not really. I cannot understand that skip thing. I would expect the ARGF.file.readlines statement to remove the current file from ARGV since it is read. It is confus...
07/16/2022
-
10:57 AM Ruby Bug #18920 (Closed): Documentation on ARGF.inplace_mode and ARGF.inplace_mode= is wrong
- The file extension is appended to a copy of the original file and not to the modified file.
Cf. man page for ruby. -
10:47 AM Ruby Bug #18909: ARGF.readlines reads more than current file
- Eregon (Benoit Daloze) wrote in #note-11:
> My two cents, options like `-i`/`-n`/`-p` shouldn't be used, I think they are vestigial legacy flags inherited from Perl or so.
> ...
Sad to hear that. Those perl-like features have been my f... -
10:25 AM Ruby Bug #18909: ARGF.readlines reads more than current file
- austin (Austin Ziegler) wrote in #note-10:
...
In your link it is clear that e.g. in the case of read, `ARGF` concatenates the input files, not that it always treats the input as a concatenated file. (That third paragraph.) It is also ve...
07/15/2022
-
06:48 PM Ruby Bug #18909: ARGF.readlines reads more than current file
- But this "documented API" was not implemented in the way it was described. From my limited viewpoint I would have preferred a change in the implementation and not in the documentation.
There is nothing in the introductory paragraphs on ... -
05:36 PM Ruby Bug #18909: ARGF.readlines reads more than current file
- Yes, ARGF can work with a concatenated pseudo file in several ways but this idea collides squarely with the idea of inplace editing (-i option). Kernel.readlines already makes an array from the concatenated file. Therefore I think a meth...
-
06:33 AM Ruby Bug #18909: ARGF.readlines reads more than current file
- Hm…if I understand it correctly, this just changed the documentation to conform to a strange behavior. Strange in the sense that the -i (inplace) option becomes meaningless in the case of multiple files an ARGV.readlines. Would it not be...
07/13/2022
-
01:00 PM Ruby Bug #18909 (Closed): ARGF.readlines reads more than current file
- The docuentation says that ARGF.readlines: *Reads ARGF's current file in its entirety* , but this is what happens:
`$ cat fileA
A
$ cat fileB
B
$ ruby -e 'puts ARGF.readlines' fileA fileB
A
B`
i.e. it reads both the current fil...