all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Phil Hagelberg <phil@hagelb.org>
To: Glenn Morris <rgm@gnu.org>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: 23.0.50; pcmpl-ssh-hosts breaks when known_hosts file has a space in the wrong place
Date: Wed, 09 Apr 2008 09:28:51 -0700	[thread overview]
Message-ID: <87hcebngak.fsf@hagelb.org> (raw)
In-Reply-To: <18408.3798.278043.611553@fencepost.gnu.org> (Glenn Morris's message of "Mon, 24 Mar 2008 16:28:06 -0400")


Sorry, I lost this email for a while when I was switching machines.

Glenn Morris <rgm@gnu.org> writes:

> I quote from `man sshd' on my RHEL5 system:
>
> SSH_KNOWN_HOSTS FILE FORMAT
>
> ...
>
>    Each line in these files contains the following fields: hostnames,
>    bits, exponent, modulus, comment.  The fields are separated by spaces.
>
>    Hostnames is a comma-separated list of patterns...
>
> This is "OpenSSH_4.3p2, OpenSSL 0.9.8b 04 May 2006".

> My own known_hosts file contains many entries like this:
>
> host1.full.domain,host1,host1-alias,host-generic,ip1 ssh-rsa ...
> host2.full.domain,host2,host2-alias,host-generic,ip2 ssh-rsa ...

Interesting. I have never seen a file like this in practice, but I have
not used Red Hat in a long time. Thanks for bringing this to my
attention.

Recently it's come to my attention that there's already a function that
does this in tramp: tramp-parse-hosts will return a list of user/host
pairs, though on my machine it also returns some key signatures. (I
imagine it could use some debugging as well.)

Clearly this shows some redundancy that should be removed. But I'm not
sure what the best way to go about this is. I don't think pcomplete
should require tramp, nor vice-versa. Perhaps it should be spun out into
a third file that the other two require? I don't feel I have a great
grasp on how files are organized within Emacs.

Thoughts?

-Phil
http://technomancy.us




  reply	other threads:[~2008-04-09 16:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-19 21:14 23.0.50; pcmpl-ssh-hosts breaks when known_hosts file has a space in the wrong place Phil Hagelberg
2008-03-20 17:51 ` Glenn Morris
     [not found]   ` <87iqzgx77t.fsf@hagelb.org>
2008-03-24 20:28     ` Glenn Morris
2008-04-09 16:28       ` Phil Hagelberg [this message]
2008-04-09 19:29         ` Michael Albinus
2008-04-10 19:52           ` Phil Hagelberg

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=87hcebngak.fsf@hagelb.org \
    --to=phil@hagelb.org \
    --cc=emacs-devel@gnu.org \
    --cc=rgm@gnu.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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.