From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8072 invoked by alias); 29 Apr 2012 18:29:26 -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: 17045 Received: (qmail 7127 invoked from network); 29 Apr 2012 18:29:13 -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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 Received-SPF: neutral (ns1.primenet.com.au: 74.125.82.43 is neither permitted nor denied by SPF record at ntlworld.com) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-proxyuser-ip:date:from:to:subject:message-id:in-reply-to :references:x-mailer:mime-version:content-type :content-transfer-encoding:x-gm-message-state; bh=gyY6eD64qE30Fyx6uG0N1gYE2QsYE72EMcc3MWnopko=; b=HlaOHWUhi+W+kYbUYbFTQtipMbh+UUZQihOShElwM9tmTxSnQ5lwBfwys0sEGncIYT fa8cQVwEVNp/kOnmbR8v0G3rA7iQRo3X6h62zk2+IBj4n/sBBg4BP/vrAdPmxWN3yDB8 qXZR2WZ9JoJCuHd3kHrZBkBagi9/QdAsLB5iWGbwJXpTJG+NF0hMy+EDXVJQlAJWAdP5 l8CVfx6o7f/+O4NhCGQVKW2F5+d42lqy4c/aoKS+aYjkcV7sRDApzPf1fjeS2QmjAuVX OnnRj8swgcrySTZ0rNWZC4+20C8rD2RjBzAILemSMGk03F1QtsJQMWNfyAKyvYN5p8Rc ehLg== X-ProxyUser-IP: 86.6.29.42 Date: Sun, 29 Apr 2012 19:29:04 +0100 From: Peter Stephenson To: zsh-users@zsh.org Subject: Re: compinit causes completion to fail? Message-ID: <20120429192904.4ad1c2f1@pws-pc.ntlworld.com> In-Reply-To: <11E3E5A7F06F49C2B05AD5289019FC72@gmail.com> References: <11E3E5A7F06F49C2B05AD5289019FC72@gmail.com> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.7; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQnKGjxslv+sYRkA2zwi21OqHfD/wdoenxJXuU9pwZsJsiVb8raGQoL1KwsoKJMkFxF6xizx On Sun, 29 Apr 2012 02:57:56 -0400 TJ Luoma wrote: > To answer my own question: > > IFS=' > ' > > is what was causing the problem. > > I'm now learning about using the f expansion flag instead of mucking > with IFS for splitting arrays on newlines I'd certainly recommend parameter expansion for this kind of thing, despite its rococo aspects, but note that you should be able to set IFS as a prefix to a command line and have it restored after the command line is executed, otherwise it's a bug. However, that has its own quirks; in particular, the IFS isn't set until after the command line is fully expanded. So I think you're going the right way. -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/