From 94653b917a886c4e19ce8027581e3138ca35f9c3 Mon Sep 17 00:00:00 2001 From: Richard Hartmann Date: Fri, 10 Feb 2012 17:55:48 +0100 Subject: [PATCH 1/1] Make parser more robust --- vcsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- 2.39.5