[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: broken shell script with dash

On 2011-04-06 14:33 +0200, Michael P. Soulier wrote:

> On 28/03/11 Miles Fidelman said:
>> of course you could just run your script under bash
> And I am, but why is dash claiming to be a posix shell by being /bin/sh?

Brace expansion is not Posix, so dash does not support it.  For other
possible problems, see https://wiki.ubuntu.com/DashAsBinSh.

The 'checkbashisms' script in the devscripts package can help you to
detect non-portable constructs in shell scripts.


Reply to: