From 8b8547237af4b7538e213451370dbced1ba9d69b Mon Sep 17 00:00:00 2001 From: ianmacd <> Date: Fri, 1 Mar 2002 07:55:36 +0000 Subject: [PATCH] - _cvs(): assign to $changed() and $newremoved() as arrays, not scalars --- bash_completion | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bash_completion b/bash_completion index 32cdb020..134fe862 100644 --- a/bash_completion +++ b/bash_completion @@ -1,6 +1,6 @@ # bash_completion - some programmable completion functions for bash 2.05a # -# $Id: bash_completion,v 1.170 2002/03/01 07:58:23 ianmacd Exp $ +# $Id: bash_completion,v 1.171 2002/03/01 08:55:36 ianmacd Exp $ # # Copyright (C) Ian Macdonald # @@ -718,10 +718,10 @@ _cvs() # this is the least computationally intensive way # found so far, but other changes (something other than # changed/removed/new) may be missing - changed=$( cvs diff --brief 2>&1 | \ - sed -ne 's/^Files [^ ]* and \([^ ]*\) differ$/\1/p' ) - newremoved=$( cvs diff --brief 2>&1 | \ - sed -ne 's/^cvs diff: \([^ ]*\) .*, no comparison available$/\1/p' ) + changed=( $( cvs diff --brief 2>&1 | \ + sed -ne 's/^Files [^ ]* and \([^ ]*\) differ$/\1/p' ) ) + newremoved=( $( cvs diff --brief 2>&1 | \ + sed -ne 's/^cvs diff: \([^ ]*\) .*, no comparison available$/\1/p' ) ) COMPREPLY=( $( compgen -W '${changed[@]} \ ${newremoved[@]}' -- $cur ) ) else