<apotheon>
I might have use for reline at some point in the nearish future.
<apotheon>
havenwood: Thanks!
jottr has quit [Ping timeout: 245 seconds]
<havenwood>
apotheon: rlwrap is another neat tool that you can use to wrap anything without readline support. perl6 doesn't support readline, for example, but you can: rlwrap perl6
<barg>
I have tried brew install ruby, and it says ruby 2.6 is already installed, and suggested brew reinstall ruby. So I tried that. And opened a new window, and it's still on ruby 2.3.7
<barg>
ah was then a path issue export PATH="/usr/local/opt/ruby/bin:$PATH"
gabschem_ has quit [Remote host closed the connection]
gabschem_ has joined #ruby
nowhere_man has quit [Read error: Connection reset by peer]
Emmanuel_Chanel has quit [Ping timeout: 248 seconds]
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
impermanence has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
wildtrees has joined #ruby
wildtrees has quit [Remote host closed the connection]
kyrylo has quit [Read error: Connection reset by peer]
wildtrees has joined #ruby
Inline__ has joined #ruby
BH23 has joined #ruby
kyrylo has joined #ruby
wildtrees has quit [Remote host closed the connection]
kyrylo has quit [Read error: Connection reset by peer]
Emmanuel_Chanel has joined #ruby
wildtrees has joined #ruby
Inline has quit [Ping timeout: 264 seconds]
kyrylo has joined #ruby
nowhere_man has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
jottr has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
kapilp has quit [Quit: Connection closed for inactivity]
kyrylo has quit [Read error: Connection reset by peer]
<havenwood>
rushsteve1: I tried your patch and didn't run into edge cases that bothered me in particular. That said, I also have a hard time seeing a case where anyone would use it.
<havenwood>
rushsteve1: How should repeated dots in filenames be treated? I'm really not sure.
<havenwood>
rushsteve1: I couldn't find any GNU or BSD guidelines that apply.
Intelo has joined #ruby
<havenwood>
rushsteve1: Did you encounter this in real world code?
kyrylo has joined #ruby
<havenwood>
rushsteve1: Or are you wanting it for logical consistency but haven't run into needing it?
jottr has quit [Ping timeout: 248 seconds]
kyrylo has quit [Read error: Connection reset by peer]
<havenwood>
rushsteve1: I'd suggest adding addition test cases. I tried a bunch but didn't actually find inconsistent behavior.
<havenwood>
additional*
kyrylo has joined #ruby
<rushsteve1>
havenwood: I didn't open the issue so I've never actually encountered the issue. But filename containing nothing but dots *are* technically valid so should probably be handled.
kyrylo has quit [Read error: Connection reset by peer]
<rushsteve1>
havenwood: As for how they should be treated, I decided to leave the current method where only the final dot is of significance when determining the extension
<havenwood>
rushsteve1: Yeah, I do think your version makes a bit more sense unless someone can explain why you'd remove multiple leading dots from a dotfile.
<havenwood>
I couldn't find a reason to do that.
<havenwood>
And there's not one documented. ¯\_(ツ)_/¯
kyrylo has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
<rushsteve1>
Since extname only cares about the extension anyway leading dots are somewhat irrelevant. Only the last dot actually matters.
<rushsteve1>
Though one edge case just occurred to me in my patch.
kyrylo has joined #ruby
<rushsteve1>
`.bashrc` will return "" (empty string) but `...bashrc` will return ".bashrc" since it considers it to be a hidden file named "." with the extension ".bashrc"
<rushsteve1>
But then... isn't it? That's how my file manager (Dolphin) treats it
glosoli has joined #ruby
nowhere_man has quit [Remote host closed the connection]
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
wildtrees has quit [Remote host closed the connection]
kyrylo has quit [Read error: Connection reset by peer]
wildtrees has joined #ruby
kyrylo has joined #ruby
kyrylo has quit [Client Quit]
<rushsteve1>
havenwood: any thoughts?
Intelo_ has joined #ruby
Intelo has quit [Ping timeout: 260 seconds]
teardown has joined #ruby
<havenwood>
rushsteve1: I think a test for that case would be helpful to solidify expectations. I see your patch as an improvement, but I worry about system-dependent edge cases.
BH23 has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
zacts has joined #ruby
jottr has quit [Ping timeout: 268 seconds]
zacts_pi has joined #ruby
AJA4351 has joined #ruby
wildtrees_ has joined #ruby
jottr has joined #ruby
AJA4350 has quit [Ping timeout: 245 seconds]
AJA4351 is now known as AJA4350
Sithembewena has joined #ruby
zacts has quit [Ping timeout: 276 seconds]
wildtrees has quit [Ping timeout: 246 seconds]
jottr has quit [Ping timeout: 272 seconds]
jottr has joined #ruby
za1b1tsu has quit [Ping timeout: 246 seconds]
Sithembewena has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 245 seconds]
zacts_pi has quit [Quit: WeeChat 2.4]
rorochan has quit [Read error: Connection reset by peer]
Swyper has quit [Remote host closed the connection]
rorochan has joined #ruby
Swyper has joined #ruby
jangid has quit [Quit: Leaving]
Sithembewena has joined #ruby
jottr has joined #ruby
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gabschem_ has quit [Remote host closed the connection]
chalkmonster has joined #ruby
chalkmonster has quit [Client Quit]
jenrzzz has joined #ruby
<Sithembewena>
Lambchop thanks
jottr has quit [Ping timeout: 258 seconds]
oetjenj has joined #ruby
fphilipe_ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Swyper has quit [Remote host closed the connection]
orbyt_ has joined #ruby
orbyt_ has quit [Client Quit]
Intelo_ has quit [Remote host closed the connection]
gabschem_ has joined #ruby
chalkmonster has joined #ruby
orbyt_ has joined #ruby
gabschem_ has quit [Ping timeout: 244 seconds]
glosoli has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
akkad has joined #ruby
akkad is now known as ober
Sithembewena has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has quit [Ping timeout: 244 seconds]
ober has left #ruby ["ERC (IRC client for Emacs 26.2)"]
jottr has joined #ruby
fphilipe_ has quit [Ping timeout: 272 seconds]
Sithembewena has joined #ruby
wildtrees_ is now known as wildtrees
impermanence has quit [Ping timeout: 246 seconds]
fphilipe_ has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
fphilipe_ has quit [Ping timeout: 268 seconds]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Intelo has joined #ruby
dbugger has quit [Ping timeout: 264 seconds]
x86sk has joined #ruby
jottr has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
hiroaki has quit [Ping timeout: 268 seconds]
fphilipe_ has joined #ruby
duderonomy has joined #ruby
jordanm has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
Exuma has joined #ruby
duderonomy has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
fphilipe_ has quit [Ping timeout: 248 seconds]
jottr has quit [Ping timeout: 246 seconds]
jordanm has joined #ruby
fphilipe_ has joined #ruby
matheusmoreira has quit [Ping timeout: 258 seconds]
kaleido has quit [Quit: out]
fphilipe_ has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
kaleido has joined #ruby
matheusmoreira has joined #ruby
jottr has joined #ruby
Mrgoose8 has quit [Ping timeout: 268 seconds]
Xiti has quit [Quit: Xiti]
jottr has quit [Ping timeout: 248 seconds]
Sithembewena has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Sithembewena has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.5]
nowhere_man has joined #ruby
fphilipe_ has joined #ruby
zacts has joined #ruby
Exuma has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Xiti has joined #ruby
GodFather has quit [Ping timeout: 258 seconds]
GodFather_ has quit [Ping timeout: 268 seconds]
RiPuk_ has quit [Ping timeout: 246 seconds]
<barg>
what is the reasoning behind ruby's rule that if a method call has no parentheses and 1+ arguments, and a block, then the block has to be done with do end, not with braces?
Fernando-Basso has quit [Remote host closed the connection]
<leftylink>
I guess they just had to make a decision. in the expression `f y { :hello }`, does f get the block, or does y? and it so turns out that it is y
<leftylink>
&>> def y; yield end; def f a; a end; f y { :hello }
<leftylink>
a decision had to be made one way or the other
fphilipe_ has quit [Ping timeout: 272 seconds]
Exuma has joined #ruby
<barg>
thanks
Exuma has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
segy has quit [Remote host closed the connection]
jottr has joined #ruby
DaRock has joined #ruby
jottr has quit [Ping timeout: 272 seconds]
<barg>
so there is no such rule re what I had thought, as I see that f y {} works, and I suppose is equivalent to f (y {}) so, as you say, it's about precedence, but i don't understand how parentheses is worked out basd on precedence. I know how it works for arithmetic operators.. I see that link mentions that {} are low priority and do end are lower. I can see that f 4 do end works. But I can't
<barg>
see what parentheses could be put on f 4 do end to have the same effect