From: Felipe Contreras Date: Tue, 16 Oct 2012 00:24:54 GMT Subject: Re: [PATCH v5 2/3] tests: use __gitcompadd to simplify completion tests Message-ID: In-Reply-To: <1350229971-9343-3-git-send-email-felipe.contreras@gmail.com> On Sun, Oct 14, 2012 at 5:52 PM, Felipe Contreras wrote: > -print_comp () > +__gitcompadd () > { > - local IFS=$'\n' > - echo "${COMPREPLY[*]}" > out > + compgen -P "${2-}" -S "${4- }" -W "$1" -- "${3-$cur}" > out Rather: compgen -W "$1" -P "$2" -S "$4" -- "$3" > out -- Felipe Contreras