|
|
Log in / Subscribe / Register

dash/ash

dash/ash

Posted Oct 2, 2014 13:49 UTC (Thu) by mbunkus (subscriber, #87248)
In reply to: dash/ash by wahern
Parent article: Bash gets shellshocked

> But as josh said, if you're writing software that really requires juggling lots of data, why keep the shell?

As much as I love and use Perl it doesn't have several things that I find extremely useful for scripting: set -e, set -x and zsh's globbing functionality. I don't know of an equivalent for either of the »set«s, and especially -e is truly a very effective way of preventing accidental mishaps.

Then again: for me it's a question of when to switch from zsh to Perl, not from bash to Perl. zsh can do a lot of things that bash cannot, therefore I do get further via shell scripts than I would with bash; meaning the gain of switching from bash to Perl is usually higher than for zsh to Perl.


to post comments

dash/ash

Posted Oct 3, 2014 9:42 UTC (Fri) by cortana (subscriber, #24596) [Link] (2 responses)

Beware, you can't rely on set -e all the time. Try using it in a command list executed from an if statement some time...

dash/ash

Posted Oct 3, 2014 16:43 UTC (Fri) by mbunkus (subscriber, #87248) [Link] (1 responses)

Care to give me an example? My short tests don't show any problem, therefore I don't seem to understand what you mean.

dash/ash

Posted Oct 7, 2014 9:05 UTC (Tue) by drothlis (guest, #89727) [Link]


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds