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

> you could easily imagine some Python-esque shell language (xonsh?) and have that be:

> print(os.path.exists("ssh://user@rsync.net:fileThatExists"))

That's just invoking the whole jungle when all you want is a banana.




What do you think happens when you invoke a shell? It's not some magical primitive, it also does string parsing and all the other stuff that a scripting language requires. SSH also has to parse the line!

I did say Python-esque (I do get that Python in particular has a lot of stuff in its prelude). Really if you want to be super pedantic then the most "banana"-y isn't a line in your shell but some C library calls on both sides of the system.


> What do you think happens when you invoke a shell?

It doesn't crash because I forgot to import os ?




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: