dawg (Andrew Dumke)
- Login: dawg
- Registered on: 07/10/2017
- Last sign in: 08/20/2024
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
09/22/2017
-
05:14 PM Ruby Bug #13736 (Feedback): ruby -00 should be the same as setting $/=""
- Try:
$ printf "1\n1b\n\n\n\n\n2\n2b\n\n3\3b" | ruby -00 -F"\n" -lane 'END{p $.}'
4
vs
$ printf "1\n1b\n\n\n\n\n2\n2b\n\n3\3b" | ruby -F"\n" -lane 'BEGIN{$/=""}; END{p $.}'
3
vs
$ printf "1\n1b\... -
04:58 PM Ruby Bug #13736: ruby -00 should be the same as setting $/=""
- This does not seem to be corrected on ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-darwin16]
Exactly the same results as before.
07/10/2017
-
05:08 AM Ruby Bug #13736: ruby -00 should be the same as setting $/=""
- Please see Stackoverflow https://stackoverflow.com/q/44999907/298607 for a better / more complete description.
-
05:06 AM Ruby Bug #13736 (Closed): ruby -00 should be the same as setting $/=""
- Suppose you have blocks of text separated by 2 or more \n. A typical text file with records defined by a black line.
Given:
```
$ cat lines
f1, r1
f2, r1 then 2 \n:
f1, r2 then 3 \n:
f1,r3
f2,r3 then 4 \n:
f1, r...