git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix problematic ']'
@ 2007-07-23 20:36 Johannes Sixt
  2007-07-23 20:51 ` Johannes Schindelin
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Johannes Sixt @ 2007-07-23 20:36 UTC (permalink / raw)
  To: git; +Cc: Johannes Schindelin

Not all shells grok a closing ']' of the shell '[' command without
surrounding space.

Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
---

I didn't go the long way to change all `[ ... ]` into `test ...`

 git-rebase--interactive.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh
index 579a45e..e0d1326 100755
--- a/git-rebase--interactive.sh
+++ b/git-rebase--interactive.sh
@@ -385,7 +385,7 @@ do
 
 		require_clean_work_tree
 
-		if [ ! -z "$2"]
+		if [ ! -z "$2" ]
 		then
 			git show-ref --verify --quiet "refs/heads/$2" ||
 				die "Invalid branchname: $2"
-- 
1.5.3.rc0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-07-24  2:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-23 20:36 [PATCH] Fix problematic ']' Johannes Sixt
2007-07-23 20:51 ` Johannes Schindelin
2007-07-23 20:58 ` Timo Hirvonen
2007-07-24  2:01 ` Junio C Hamano
2007-07-24  2:18   ` [PATCH] rebase -i: exchange all "if [ .. ]" by "if test .." Johannes Schindelin

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).