News for hackers. Stuff that matters.
Re:Elvish is a friendly interactive shell and an expressive ... by em-bee on Thursday September 10, 2020 @01:18AM (#24429118)
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?

Re:Elvish is a friendly interactive shell and an expressive ... by chubot on Thursday September 10, 2020 @02:07AM (#24429375)
It'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).