From: Richard Hartmann Date: Fri, 10 Feb 2012 16:55:48 +0000 (+0100) Subject: Make parser more robust X-Git-Url: https://git.madduck.net/code/vcsh.git/commitdiff_plain/94653b917a886c4e19ce8027581e3138ca35f9c3?ds=sidebyside;hp=85dfe18fb118fffa4d77c5a2877ad7570d8d0ec3 Make parser more robust --- diff --git a/vcsh b/vcsh index e8fefbb..8639095 100755 --- a/vcsh +++ b/vcsh @@ -186,7 +186,7 @@ use() { which() { for VCSH_REPO_NAME in $(list); do for VCSH_FILE in $(get_files); do - echo $VCSH_FILE | grep $VCSH_COMMAND_PARAMETER > /dev/null && echo "$VCSH_REPO_NAME: $VCSH_FILE" + echo $VCSH_FILE | grep -q "$VCSH_COMMAND_PARAMETER" && echo "$VCSH_REPO_NAME: $VCSH_FILE" done done | sort -u }