From: Mikhail Gusarov Date: Wed, 18 Dec 2013 21:23:22 +0000 (+0100) Subject: Use printf, not echo -n to print messages without newline X-Git-Url: https://git.madduck.net/code/vcsh.git/commitdiff_plain/2b7348c58c6a4308b3f1d551b4884b1f5d5ff2d8?ds=sidebyside;hp=--cc Use printf, not echo -n to print messages without newline OS X echo does not understand -n and prints it literally --- 2b7348c58c6a4308b3f1d551b4884b1f5d5ff2d8 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