Re: [PATCH] Remove "bashism" from contrib/thunderbird-patch-inline/appp.sh
- From
- Ángel González <ingenit@zoho.com>
- Date
- Mar 29, 2011, 00:16 UTC
- Message-ID
- <4D9124C0.8070003@zoho.com>
- In-Reply-To
- <AANLkTin-USDnTxeKT_KOZW5kgC0vFXYbMNP9ct6fzbUC@mail.gmail.com>
Maxin john wrote:
> > Remove "bashism" and minor corrections for > > contrib/thunderbird-patch-inline/appp.sh > > > > Signed-off-by: Maxin B. John <maxin@maxinbjohn.info>
This is wrong.
You are replacing bash with sh:
> > -#!/bin/bash > > +#!/bin/sh
but the script still uses bash-specific syntax (aka. bashishms):
> > + > > PATCH=$(zenity --file-selection) > > > > if [ "$?" != "0" ] ; then
So with your change the script won't be able to run on systems which don't have bash as /bin/sh
The standard equivalent of $( ) are `backticks`.