Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I disagree. I think nushell does both quite well. But it requires eschewing backwards-compatibility and interoperability with sh/bash


I was just thinking the same. There's not really any reason a shell can't have terse syntax for quick command things and explicit, careful syntax for things that require it. And if python had a pipe operator, you could basically do

    open('file.txt') |> grep(?,"lasagna") |> set |> sorted
Which is really pretty good. It's not at all hard to imagine a Python that was designed to be good in the shell. They just didn't try.


There is a python-based shell https://xon.sh with a plugin that allows piping :)

https://github.com/anki-code/xontrib-pipeliner




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: