From: "Wu, Bryan" <bryan.wu@analog.com>
To: Francis Daly <francis@daoine.org>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] git-quiltimport /bin/sh-ism fix
Date: Fri, 30 Mar 2007 10:05:04 +0800 [thread overview]
Message-ID: <1175220304.15391.46.camel@roc-desktop> (raw)
In-Reply-To: <20070329213820.GY24561@craic.sysops.org>
On Thu, 2007-03-29 at 22:38 +0100, Francis Daly wrote:
> Bryan Wu reported
> /usr/local/bin/git-quiltimport: 114: Syntax error: Missing '))'
>
> Most bourne-ish shells I have here accept
> x=$((echo x)|cat)
> but all bourne-ish shells I have here accept
> x=$( (echo x)|cat)
> because $(( might mean arithmetic expansion.
>
> Signed-off-by: Francis Daly <francis@daoine.org>
> ---
> git-quiltimport.sh | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/git-quiltimport.sh b/git-quiltimport.sh
> index 08ac9bb..edccd82 100755
> --- a/git-quiltimport.sh
> +++ b/git-quiltimport.sh
> @@ -115,7 +115,7 @@ for patch_name in $(cat "$QUILT_PATCHES/series" | grep -v '^#'); do
> if [ -z "$dry_run" ] ; then
> git-apply --index -C1 "$tmp_patch" &&
> tree=$(git-write-tree) &&
> - commit=$((echo "$SUBJECT"; echo; cat "$tmp_msg") | git-commit-tree $tree -p $commit) &&
> + commit=$( (echo "$SUBJECT"; echo; cat "$tmp_msg") | git-commit-tree $tree -p $commit) &&
> git-update-ref -m "quiltimport: $patch_name" HEAD $commit || exit 4
> fi
> done
Cool. Thanks a lot.
-Bryan
prev parent reply other threads:[~2007-03-30 2:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-29 21:38 [PATCH] git-quiltimport /bin/sh-ism fix Francis Daly
2007-03-29 23:06 ` Junio C Hamano
2007-03-30 2:05 ` Wu, Bryan [this message]
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=1175220304.15391.46.camel@roc-desktop \
--to=bryan.wu@analog.com \
--cc=francis@daoine.org \
--cc=git@vger.kernel.org \
/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).