Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Xonsh is a Python-powered shell (xon.sh)
26 points by EntICOnc on Feb 24, 2022 | hide | past | favorite | 3 comments


This is a super cool idea, I'm surprised there isn't ambiguity in parsing shell commands vs python.

For example if a user types "a | b", do they want to run process a and pipe it into b, or are they trying to bitwise or variables a and b?


There's a Python mode and a subprocess mode.

https://xon.sh/tutorial.html#python-mode-vs-subprocess-mode


There is ambiguity. "open .file" is parsed as "open.file", which is an error in Python




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

Search: