From: Jonathan Nieder <jrnieder@gmail.com>
To: Brian Riehman <briehman@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: git stash syntax error under AIX 5.3
Date: Wed, 3 Nov 2010 10:07:18 -0500 [thread overview]
Message-ID: <20101103150718.GA12733@burratino> (raw)
In-Reply-To: <AANLkTimSpPLfqv07+Tmcj-iM0W+p86V2-HRrq71Umdtr@mail.gmail.com>
Hi Brian,
Brian Riehman wrote:
> The stash command relies on bash-specific shell scripting techniques
Git actually uses the ${var%glob} syntax pretty widely, and it is
fairly portable (see http://unix.org/2008edition/ and search for "sh -"
for details). I suspect the problem is rather the seemingly-unbalanced
braces:
> < if test "${REV}" != "${REV%{*\}}"
How about this patch?
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
---
diff --git a/git-stash.sh b/git-stash.sh
index 5fb1245..0a41226 100755
--- a/git-stash.sh
+++ b/git-stash.sh
@@ -311,7 +311,7 @@ parse_flags_and_rev()
test "$ref_stash" = "$(git rev-parse --symbolic-full-name "${REV%@*}")" &&
IS_STASH_REF=t
- if test "${REV}" != "${REV%{*\}}"
+ if test "${REV}" != "${REV%\{*\}}"
then
# maintainers: it would be better if git rev-parse indicated
# this condition with a non-zero status code but as of 1.7.2.1 it
next prev parent reply other threads:[~2010-11-03 15:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-03 14:05 git stash syntax error under AIX 5.3 Brian Riehman
2010-11-03 15:07 ` Jonathan Nieder [this message]
2010-11-03 15:29 ` Brian Riehman
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=20101103150718.GA12733@burratino \
--to=jrnieder@gmail.com \
--cc=briehman@gmail.com \
--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