News for hackers. Stuff that matters.
Re:Advanced Bash Scripting by derleth on Monday December 12, 2011 @02:15AM (#3342679)
> in any situation where you need absolute portability or availability on an otherwise bare system, bash is the way to go.

Interestingly, this is why Debian uses dash: A smaller shell is more portable.

Re:Advanced Bash Scripting by tingletech on Monday December 12, 2011 @02:51AM (#3342753)
How is that portable, across different architectures?

I have to work in Solaris, SUSE SLES, some other linux where I don't know what they run, and OS X and I don't have root on most of those. bash seems to work the same everywhere and always seems to be there when I get access to a newly provisioned environment.

Re:Advanced Bash Scripting by thristian on Monday December 12, 2011 @06:19AM (#3343189)
Not every Unix-like OS comes with bash, and certainly not by default. In particular, Solaris ships with a particularly crippled /bin/sh, although they do have a proper POSIX-compatible Bourne shell at /usr/xpg4/bin/sh.

If your Solaris machines have /bin/bash available, consider yourself very lucky.

Re:Advanced Bash Scripting by tuukkah on Monday December 12, 2011 @06:56AM (#3343261)
dash is portable in the sense that Debian needs it to be: they can port it to the architectures and systems that they need it to work on.

dash is also portable in the sense that you need it to be: it implements the POSIX shell spec and not much more, so it's likely that you have access to all its features when you need to use another shell as well.