3 ms·
I was totally entusiastic when you mentioned this so I went to read the docs. While it does seem way "shellier" then pure python I don't think its comparable to
by majkinetor 10y ago
I was totally entusiastic when you mentioned this so I went to read the docs. While it does seem way "shellier" then pure python I don't think its comparable to Powershell.
One of the main benefits of posh is that it provides standards on arguments so that discoverability is easy. Along with that you get automatic tab completition for everything, module autoloading and nice stuff such as proxy commands, JEA and other great stuff not avaialble in alternatives. The other one is that nowdays many tools expose automation via powershell modules - sql server, visual svn, chocoalatey, vmware, etc. just to name few - so all that power seems wasted with xonsh on Windows. Not to mention wmi, COM and other nastier stuff becomes way more problematic then it needs to be. Good luck driving Excel for example.
There was similar attempt with Ruby (https://github.com/adamwiggins/rush https://github.com/adamwiggins/rush) - but it failed because you do really need a special language for shell. Its pitty Xiki (http://xiki.org/ http://xiki.org/) didn't become mainstream talking about Ruby.
Whitespace semantics also look like troublesome in the shell context and I guess in some more serious usage ambigious stuff like ls -l may become problematic and hard to detect source of bugs.
On the other hand, it rewards with better Python knowledge which is always good.
- BeetleB 10y ago>While it does seem way "shellier" then pure python I don't think its comparable to Powershell. Well, none of the UNIX shells are comparable to Powershell. That's why this is a nice in-between solution. A way to have a UNIX like shell on Windows, without the need to learn a new language if you already know Python. >Whitespace semantics also look like troublesome in the shell context and I guess in some more serious usage ambigious stuff like ls -l may become problematic and hard to detect source of bugs. Been using it for a few months. So far, not a problem. The biggest headache is that "dir" is a reserved keyword in Python. Not a problem: I just made 'ls' an alias for it. The only real problem is that Windows has case-insensitive environment variables, but xonsh makes them case-sensitive. This is fixable, and they'll probably fix it some time soon.
- majkinetor 10y ago> Well, none of the UNIX shells are comparable to Powershell. Yes there is one, Powershell :) Thx for detailed report by the way. I hope the project will get mature and adopted.