2 ms·
Some people might say that it's for interactive use, not for programs. But to me the point of shell is that you can seamlessly cut and paste your interactive se
by em-bee 6y ago
Some people might say that it's for interactive use, not for programs. But to me the point of shell is that you can seamlessly cut and paste your interactive sessions and now you have full automation. It's an amazing way to quickly build programs.
one could argue that a shell based on python should be especially suitable for turning your commandline into scripts.
i have never tried xonsh but i have used the python repl to interactively build a python script
xonsh approach is just about the most unprincipled approach there is
could you possibly elaborate on that please?
- chubot 6y agoIt's not Python though.. it's a tightly coupled mix of Python, shell and other stuff. You would have to extract the Python to actually run it with a Python interpreter, in which case you don't need xonsh at all. What I mean by unprincipled is that it doesn't parse or define its language. It passes the problem off to other programs (sh and Python).