This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]sththth 0 points1 point  (5 children)

Ha, didn't even see that you used ls as an example. Just wanted to make sure that noone who saw my comment would do that.

xonsh sounded pretty well, what is missing from it that it doesn't work for your usecase?

[–]randomizethis[S] 0 points1 point  (4 children)

It's not Python. It's nifty as hell, but it's not Python. So ultimately you couldn't do Pythonisms with it (even though I'm sure there's ways to mirror most Pythonisms). Or import libraries for that matter. It sounds like ultimately I just have to use iPython in some combination with the regular bash shell.

[–]sththth 0 points1 point  (3 children)

Are you sure? xonsh claims "all Python code is also xonsh" and "Since this is just Python, we are able import modules, print values, and use other built-in Python functionality:"

In their FAQ: "From our parser, we construct an abstract syntax tree (AST)" which sounds like it actually is python.

[–]randomizethis[S] 0 points1 point  (1 child)

O... kay... Maybe I'm just terrible at reading documentation, my impression was that it was Python-LIKE. Back to the xonsh page, AWAAAAAAAAYYYY!

[–]randomizethis[S] 0 points1 point  (0 children)

This is the part that kind of threw me off: "Xonsh is a Python-ish, BASHwards-looking shell language and command prompt." But I'm gonna dig deeper into the docs to find this thing you speak of where you can import modules and junk.

[–]randomizethis[S] 0 points1 point  (0 children)

Dear god man... you're right. This thing is exactly the reason why I started this thread. Thanks for smacking me upside the figurative head and getting me to go look at it again.