Earlier quoted context omitted.
Have you looked at fish? It is in the package repositories everywhere, I think.
Even so, the single most attractive trait of bash is that it ships with almost everything. If I have to write a script on a machine with no internet, then bash is the only option. This its strongest source of staying power.
Xonsh, a Python-ish, Bash-compatible shell language and command prompt
31–40 of 63 posts
Re: Xonsh, a Python-ish, Bash-compatible shell language and command prompt
#32I genuinely wish there was an alternative that could gain enough traction to reach critical mass and hopefully start shipping with operating systems. I've never bothered to learn bash because it was always so damned confusing, and I just couldn't get over the idiosyncrasies when playing around with it. I wouldn't mind putting in time to learn something new and actually user-friendly.
Re: Xonsh, a Python-ish, Bash-compatible shell language and command prompt
#33I'm a lead dev on the fish shell ( http://fishshell.com ) xonsh looks very cool. Shell scripting languages are famously obtuse and underpowered, and we've thought about how to cleanly merge shell scripting with a real language. It's heartening to see an attempt at it. Ambiguous syntax is a sticking point. For example, say the user runs this: [ 1 ] is this constructing a Python list with the value 1, or is it invoking…
shameless plug, but I made a utility to solve the problem: https://github.com/edc/bass
So you can write `bass source /usr/local/bin/virtualenvwrapper.sh ';' mkvirtualenv env1`, which of course can be shortened with a function.
Re: Xonsh, a Python-ish, Bash-compatible shell language and command prompt
#34So, for anyone like me who wanted to install it with pip, but has Python 2.7 as their default (and doesn't want to change for fear of breaking things), do the following (on a Debian based system): curl -O https://raw.githubusercontent.com/pypa/pip/master/contrib/ge... sudo python3.4 get-pip.py sudo mv /usr/local/bin/pip /usr/local/bin/pip3 # optional, adjust line below if ommited sudo pip3 install xonsh ------ then:…
Re: Xonsh, a Python-ish, Bash-compatible shell language and command prompt
#35Re: Xonsh, a Python-ish, Bash-compatible shell language and command prompt
#36I'm a lead dev on the fish shell ( http://fishshell.com ) xonsh looks very cool. Shell scripting languages are famously obtuse and underpowered, and we've thought about how to cleanly merge shell scripting with a real language. It's heartening to see an attempt at it. Ambiguous syntax is a sticking point. For example, say the user runs this: [ 1 ] is this constructing a Python list with the value 1, or is it invoking…
Re: Xonsh, a Python-ish, Bash-compatible shell language and command prompt
#37Earlier quoted context omitted.
Even so, the single most attractive trait of bash is that it ships with almost everything. If I have to write a script on a machine with no internet, then bash is the only option. This its strongest source of staying power.
You would likely have a regular sh, be it bash in "sh-mode" or a real sh, plus likely csh and maybe ksh. You'd probably also have awk, and maybe even perl.
and those are not everywhere.
Re: Xonsh, a Python-ish, Bash-compatible shell language and command prompt
#38I'm a lead dev on the fish shell ( http://fishshell.com ) xonsh looks very cool. Shell scripting languages are famously obtuse and underpowered, and we've thought about how to cleanly merge shell scripting with a real language. It's heartening to see an attempt at it. Ambiguous syntax is a sticking point. For example, say the user runs this: [ 1 ] is this constructing a Python list with the value 1, or is it invoking…
It was called REPL (Interlisp-D, Lisp Machine, Cedar, Oberon), Workspace (Smalltalk), but then UNIX won.
Re: Xonsh, a Python-ish, Bash-compatible shell language and command prompt
#39 a = $(ls)
a # '1\n2\n3\n4\n'
b = `ls`
b # []
Because of these little surprises I cannot really feel confident using it.Re: Xonsh, a Python-ish, Bash-compatible shell language and command prompt
#40I genuinely wish there was an alternative that could gain enough traction to reach critical mass and hopefully start shipping with operating systems. I've never bothered to learn bash because it was always so damned confusing, and I just couldn't get over the idiosyncrasies when playing around with it. I wouldn't mind putting in time to learn something new and actually user-friendly.