From 2b7348c58c6a4308b3f1d551b4884b1f5d5ff2d8 Mon Sep 17 00:00:00 2001 From: Mikhail Gusarov Date: Wed, 18 Dec 2013 22:23:22 +0100 Subject: [PATCH 1/1] Use printf, not echo -n to print messages without newline OS X echo does not understand -n and prints it literally --- vcsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vcsh b/vcsh index cb7eada..58b5744 100755 --- a/vcsh +++ b/vcsh @@ -247,7 +247,7 @@ list_tracked_by() { pull() { hook pre-pull for VCSH_REPO_NAME in $(list); do - echo -n "$VCSH_REPO_NAME: " + printf "$VCSH_REPO_NAME: " export GIT_DIR="$VCSH_REPO_D/$VCSH_REPO_NAME.git" use git pull @@ -259,7 +259,7 @@ pull() { push() { hook pre-push for VCSH_REPO_NAME in $(list); do - echo -n "$VCSH_REPO_NAME: " + printf "$VCSH_REPO_NAME: " export GIT_DIR="$VCSH_REPO_D/$VCSH_REPO_NAME.git" use git push -- 2.39.5