zsh-users
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: zsh-users@zsh.org
Subject: Re: compinit causes completion to fail?
Date: Sun, 29 Apr 2012 19:29:04 +0100	[thread overview]
Message-ID: <20120429192904.4ad1c2f1@pws-pc.ntlworld.com> (raw)
In-Reply-To: <11E3E5A7F06F49C2B05AD5289019FC72@gmail.com>

On Sun, 29 Apr 2012 02:57:56 -0400
TJ Luoma <luomat@gmail.com> 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 <p.w.stephenson@ntlworld.com>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/


  reply	other threads:[~2012-04-29 18:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-29  5:21 TJ Luoma
2012-04-29  6:57 ` TJ Luoma
2012-04-29 18:29   ` Peter Stephenson [this message]
2012-04-30  0:24   ` Bart Schaefer
2012-04-30  5:04     ` TJ Luoma
2012-04-30 14:37       ` Bart Schaefer
2012-04-30 14:50         ` TJ Luoma

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120429192904.4ad1c2f1@pws-pc.ntlworld.com \
    --to=p.w.stephenson@ntlworld.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).