summaryrefslogtreecommitdiff
path: root/git-bisect.sh
diff options
context:
space:
mode:
authorJason Riedy <ejr@EECS.Berkeley.EDU>2005-12-06 22:21:52 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-12-07 02:09:12 (GMT)
commit9754563ca9a99bc0fe233f43202af15704fbed4d (patch)
tree4d347609c38cb8f9ec23c28a9d56dea6bf0bd2af /git-bisect.sh
parente23eff8be92a2a2cb66b53deef020063cff285ed (diff)
downloadgit-9754563ca9a99bc0fe233f43202af15704fbed4d.zip
git-9754563ca9a99bc0fe233f43202af15704fbed4d.tar.gz
git-9754563ca9a99bc0fe233f43202af15704fbed4d.tar.bz2
Use printf rather than echo -n.
On AIX, there is no -n option to the system's echo. Instead, it needs the '\c' control character. We could replace echo -n "foo" with echo -e "foo\c" but printf is recommended by most man pages. Tested on AIX 5.3, Solaris 8, and Debian. [jc: futureproofed two instances that uses variable with '%s' so later feeding different messages would not break things too easily; others are emitting literal so whoever changes the literal ought to notice more easily so they are safe.] Signed-off-by: E. Jason Riedy <ejr@cs.berkeley.edu> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-bisect.sh')
-rwxr-xr-xgit-bisect.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-bisect.sh b/git-bisect.sh
index 68838f3..05dae8a 100755
--- a/git-bisect.sh
+++ b/git-bisect.sh
@@ -67,7 +67,7 @@ bisect_start() {
rm -rf "$GIT_DIR/refs/bisect/"
mkdir "$GIT_DIR/refs/bisect"
{
- echo -n "git-bisect start"
+ printf "git-bisect start"
sq "$@"
} >"$GIT_DIR/BISECT_LOG"
sq "$@" >"$GIT_DIR/BISECT_NAMES"