Skip to main content

Timeline for Guess my password (robbers' thread)

Current License: CC BY-SA 4.0

6 events
when toggle format what by license comment
Oct 27, 2020 at 13:07 comment added Eric Duminil Thanks a lot for the explanation. I couldn't seem to understand that gets retrieves the next line. Old-school debugging helped me understand it : tio.run/…
Oct 26, 2020 at 23:25 comment added Sisyphus Dingus' second answer reads all of stdin at once, so this trick does not work.
Oct 26, 2020 at 23:24 comment added Sisyphus @EricDuminil Dingus' first answer only reads a single line, so only system gets;exit gets read and eval'd. The second gets call then reads the line echo '"""' and passes it into system. The exit runs after the shell has finished executing the command and terminates the ruby process to avoid the p.
Oct 26, 2020 at 23:18 comment added Eric Duminil Actually, I don't get why system gets;exit somehow breaks out of Ruby into the shell. Could you please explain? Is it specific to ruby -n?
Oct 26, 2020 at 23:00 comment added Eric Duminil Very creative! If you're interested, I found a pure Ruby solution (codegolf.stackexchange.com/questions/213963/…) which works for both challenges by dingus.
Oct 25, 2020 at 6:00 history answered Sisyphus CC BY-SA 4.0