4 ms·
> 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 j
by johnchristopher 4y ago
> 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.
- rtpg 4y agoWhat 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.
- johnchristopher 4y ago> What do you think happens when you invoke a shell? It doesn't crash because I forgot to import os ?