From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9167 invoked by alias); 17 Jan 2013 03:14:38 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17573 Received: (qmail 13412 invoked from network); 17 Jan 2013 03:14:35 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <130116191415.ZM22284@torch.brasslantern.com> Date: Wed, 16 Jan 2013 19:14:15 -0800 In-reply-to: =?iso-8859-1?Q?=3CCABZhJg-Gg8eDveaio3A4wDmHwV+hP3dFcQcgc6F_Ck?= =?iso-8859-1?Q?6vGwQ3Hw=40mail=2Egmail=2Ecom=3E?= =?iso-8859-1?Q?Comments=3A_In_reply_to_Jesper_Nyg=E5rds_=3Cjesper=2Enygar?= =?iso-8859-1?Q?ds=40gmail=2Ecom=3E?= =?iso-8859-1?Q?________=22Re=3A_Completing_all_possible_candidates=22_=28?= =?iso-8859-1?Q?Jan_15=2C__8=3A28am=29?= References: <130111063215.ZM11317@torch.brasslantern.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: Completing all possible candidates MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable On Jan 15, 8:28am, Jesper Nyg=E5rds wrote: } } _my-prev-result() { } local hstring } if [[ $WIDGET =3D *-all-* ]]; then } compstate[insert]=3Dall } fi } # Run last command again, save output in hstring } hstring=3D$(eval $(fc -l -n -1)) You probably ought to put double quotes around the inner $(...), because without them in that context it's subject to word splitting and then the eval will split the resulting words again. } # Split items on new-line into an array, quote each item } compadd - ${(@f)hstring} } } I'm glad the example worked well for you.