Re:Xonsh, a Python-ish, Bash-compatible shell language and c...
by doomrobo on Sunday March 15, 2015 @09:50PM
(#9209262)
I 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.
[ Parent
| on HN ]
Re:Xonsh, a Python-ish, Bash-compatible shell language and c...
by bishc on Monday March 16, 2015 @07:12AM
(#9210827)
This is quite apropos, as just last week I released a little language called 'bish' designed to overcome exactly this issue. It compiles to bash for portability, but has more modern and familiar syntax.
See https://github.com/tdenniston/bish for the repo and https://news.ycombinator.com/item?id=9166386 for some previous discussion.
The language is still brand new and under active development. It's not stable yet.
Re:Xonsh, a Python-ish, Bash-compatible shell language and c...
by seanp2k2 on Monday March 16, 2015 @01:09AM
(#9209972)
Well, if you do ever want to learn the "finer points" of bash, http://wiki.bash-hackers.org/doku.php and http://mywiki.wooledge.org/BashGuide have tons and tons of great info.
Re:Xonsh, a Python-ish, Bash-compatible shell language and c...
by fiatjaf on Sunday March 15, 2015 @10:00PM
(#9209300)
Have you looked at fish? It is in the package repositories everywhere, I think.
Re:Xonsh, a Python-ish, Bash-compatible shell language and c...
by doomrobo on Monday March 16, 2015 @08:51PM
(#9215597)
I actually gave fish a try after you recommended it. I can't use it in my workflow :(. Virtualenv has a bash script to initiate the environment and fish's incompatibility with bash scripts makes it impossible for me to work with it.
Re:Xonsh, a Python-ish, Bash-compatible shell language and c...
by fiatjaf on Wednesday March 18, 2015 @07:51AM
(#9224804)
virtualenv deployments come with a fish specific script, it is at `venv/bin/activate.fish`.
You can source it with `. venv/bin/activate.fish`
Re:Xonsh, a Python-ish, Bash-compatible shell language and c...
by doomrobo on Monday March 23, 2015 @02:59PM
(#9252715)
Awesome! thanks
Re:Xonsh, a Python-ish, Bash-compatible shell language and c...
by doomrobo on Sunday March 15, 2015 @11:34PM
(#9209667)
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.
Re:Xonsh, a Python-ish, Bash-compatible shell language and c...
by seanp2k2 on Monday March 16, 2015 @01:08AM
(#9209970)
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.
Re:Xonsh, a Python-ish, Bash-compatible shell language and c...
by dijit on Monday March 16, 2015 @04:47AM
(#9210447)
perl is everywhere, but like python, it's power is in it's modules.
and those are not everywhere.
Re:Xonsh, a Python-ish, Bash-compatible shell language and c...
by fastviper on Monday March 16, 2015 @09:27AM
(#9211250)
.. you say a shell command line should be user friendly? What kind of user would use command line?
We are all bofhs here.
Also some of us are being paid to write bash scripts. I'm for example forced into bash because of AIX server. Learing bash is fun and profitable...