News for hackers. Stuff that matters.
Re:Four features that justify a new Unix shell by msla on Friday October 23, 2020 @08:55PM (#24875983)
Python has a REPL but it isn't sufficient to be a shell. Therefore, I can't write a program in the Python REPL just as I'm doing stuff normally and copy it into a file for further editing and polishing. I have to port whatever I did in the shell to whatever other language I'm using, which is more porting than I want to do for most shell scripts, especially ones which are mostly pipelines.

Heck, Python isn't even a good language for one-liners. Not saying it should be, but it further demonstrates that I can't use Python live the way I can use zsh live.

Re:Four features that justify a new Unix shell by edgyquant on Saturday October 24, 2020 @02:02AM (#24877282)
How is python not a good language for one liners? One liners are literally the pythonic way.
Re:Four features that justify a new Unix shell by msla on Saturday October 24, 2020 @06:38AM (#24878286)
By one-liners I meant things like Perl one-liners:

    perl -pe 's{<b>([^<]+)</b>}{<em>\1</em>}g' < foo.html > out.html
Python would never let you get away with treating it like an improved sed.