X-Git-Url: https://git.madduck.net/code/vcsh.git/blobdiff_plain/85dfe18fb118fffa4d77c5a2877ad7570d8d0ec3..94653b917a886c4e19ce8027581e3138ca35f9c3:/vcsh?ds=sidebyside 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 }