From: Nicholas Clark Date: Wed, 31 Dec 2008 07:18:37 +0000 (-0800) Subject: Solaris awk (at least) thinks that + should be escaped. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a2837a9e92f4ea37fd2681a70558d242250a5a34;p=p5sagit%2Fp5-mst-13.2.git Solaris awk (at least) thinks that + should be escaped. --- diff --git a/make_patchnum.sh b/make_patchnum.sh index 2a882c4..1eb309d 100644 --- a/make_patchnum.sh +++ b/make_patchnum.sh @@ -28,8 +28,8 @@ elif [ -d ".git" ]; then new_patchnum="describe: $describe" extra_info="git_commit_date='$commit_created'" if [ -n "$branch" ] && [ -n "$remote" ]; then - unpushed_commit_list=`git cherry $remote/$branch | awk 'BEGIN{ORS=","} /+/ {print $2}' | sed -e 's/,$//'` - unpushed_commits=`git cherry $remote/$branch | awk 'BEGIN{ORS="\t\\\n"} /+/ {print ",\"" $2 "\""}'` + unpushed_commit_list=`git cherry $remote/$branch | awk 'BEGIN{ORS=","} /\+/ {print $2}' | sed -e 's/,$//'` + unpushed_commits=`git cherry $remote/$branch | awk 'BEGIN{ORS="\t\\\n"} /\+/ {print ",\"" $2 "\""}'` if [ -n "$unpushed_commits" ]; then commit_title="Local Commit:"