zsh-users
 help / color / mirror / code / Atom feed
From: Kyle Rose <krose@krose.org>
To: zsh-users@sunsite.dk
Subject: Completion strangeness
Date: Tue, 17 May 2005 16:53:45 -0400	[thread overview]
Message-ID: <428A59D9.9050305@krose.org> (raw)

This relates to zsh 4.2.5's ssh command line completion.  I don't know
if this problem exists in earlier versions.

Here's the problem I'm seeing:

  krose@jihl ~% ssh krose@y<TAB>

results in

  krose@jihl ~% ssh krose@yupa..org

with the cursor over the second ".".  Then, if I hit <TAB> again, I get

  krose@jihl ~% ssh krose@yupa.krose.org

with the completion "done" (i.e., the cursor a space after "org").
Problem is, when I do

  krose@jihl ~% ssh krose@y^Xn

I get

  yupa-dmz.valley-of-wind.krose.org  yupa.krose.org
  yupa.valley-of-wind.krose.org

Clearly, any of them match the original attempt to complete.  This works
just fine with hosts only:

  krose@jihl ~% ssh y<TAB>

  krose@jihl ~% ssh yupa<TAB>

  krose@jihl ~% ssh yupa<TAB>
  yupa-dmz.valley-of-wind.krose.org  yupa.krose.org
  yupa.valley-of-wind.krose.org

  krose@jihl ~% ssh yupa-dmz.valley-of-wind.krose.org
  yupa-dmz.valley-of-wind.krose.org  yupa.krose.org
  yupa.valley-of-wind.krose.org

and so on, cycling through the three potential completions.

Any clues?

BTW, I've now been using zsh as my exclusive interactive shell for
almost exactly 10 years.  Sweet. :)

Cheers,
Kyle


             reply	other threads:[~2005-05-17 20:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-17 20:53 Kyle Rose [this message]
2005-05-18  2:13 ` Bart Schaefer
2005-05-18  4:18   ` Kyle Rose
2005-05-18 14:49   ` Kyle Rose

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=428A59D9.9050305@krose.org \
    --to=krose@krose.org \
    --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).