From: Maxin john <maxin@maxinbjohn.info>
To: "Ángel González" <ingenit@zoho.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] Remove "bashism" from contrib/thunderbird-patch-inline/appp.sh
Date: Tue, 29 Mar 2011 09:54:37 +0300 [thread overview]
Message-ID: <AANLkTikaZA=7EFMVf1hwEoQJd6hChha0cCL7ZRMEZXyS@mail.gmail.com> (raw)
In-Reply-To: <4D9103D3.5010403@zoho.com>
Hi,
Thank you very much for the suggestions. However, I have tested this
script in Ubuntu which uses dash as /bin/sh
Eg: the following script runs successfully in Ubuntu 10.10
#!/bin/dash
PATCH=$(zenity --file-selection)
if [ "$?" != "0" ] ; then
echo "zenity failed"
else
echo "success"
fi
I haven't confirmed this in other shell implementations. Please let me
know your comments on this.
Best Regards,
Maxin B. John
2011/3/29 Ángel González <ingenit@zoho.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
>
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
next prev parent reply other threads:[~2011-03-29 6:54 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-27 14:37 [PATCH] Remove "bashism" from contrib/thunderbird-patch-inline/appp.sh Maxin john
2011-03-28 21:55 ` Ángel González
2011-03-29 6:54 ` Maxin john [this message]
2011-03-29 7:09 ` Junio C Hamano
2011-03-29 22:48 ` Ángel González
2011-03-30 8:52 ` Maxin john
2011-03-30 17:57 ` Junio C Hamano
2011-03-30 18:51 ` Maxin john
2011-03-31 21:56 ` Junio C Hamano
[not found] ` <8721039.4955.1301382568626.JavaMail.trustmail@mail1.terreactive.ch>
2011-03-29 14:03 ` Victor Engmark
2011-03-29 0:16 ` Ángel González
2011-03-29 1:01 ` Junio C Hamano
2011-03-29 6:47 ` Maxin john
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='AANLkTikaZA=7EFMVf1hwEoQJd6hChha0cCL7ZRMEZXyS@mail.gmail.com' \
--to=maxin@maxinbjohn.info \
--cc=git@vger.kernel.org \
--cc=ingenit@zoho.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).