zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Hannu Koivisto <azure@iki.fi>, "Zsh Users' List" <zsh-users@sunsite.dk>
Subject: Re: Superfluous CRs trouble completion routines in Cygwin
Date: Sat, 15 Oct 2005 18:02:40 +0000	[thread overview]
Message-ID: <1051015180240.ZM22900@candle.brasslantern.com> (raw)
In-Reply-To: <87irvzys44.fsf@trews52.bothi.fi>

On Oct 15,  1:47pm, Hannu Koivisto wrote:
}
} [...] when I added hline[-1]=${hline[-1]%^M} } to the loop
} 
} _perforce_call_p4 help-commands help commands | while read -A hline; do
}     ...
} done
} 
} the problem disappeared.

The underlying issue here is the one discussed in the thread "Little
problem while converting from bash" back on May 12 (e.g. users/8822).
There was also a lengthy thread "zsh and line breaks" in April 2004
on the zsh-workers list which partly explains how we got to where we
are now.

} I wonder if it made sense to make the "core" completion functions
} such as _describe more tolerant to CRs instead of modifying
} application-specific completion functions? Or can you think of other,
} better ways of getting rid of the problem for good?

I think the answer is that $_comp_setup in compinit should contain

	local IFS=$'\r'"$IFS"

The question is whether it would hurt to treat CR as whitespace in
completion on other platforms -- if it would, then we need to make
that conditional on Cygwin, somehow.


      reply	other threads:[~2005-10-16  7:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-15 10:47 Hannu Koivisto
2005-10-15 18:02 ` Bart Schaefer [this message]

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=1051015180240.ZM22900@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=azure@iki.fi \
    --cc=zsh-users@sunsite.dk \
    /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).