zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Peter Stephenson <p.w.stephenson@ntlworld.com>
Cc: zsh-users@zsh.org
Subject: Re: Zsh autocompletion with no access to a parent directory
Date: Fri, 30 Apr 2010 09:14:47 -0700	[thread overview]
Message-ID: <m2v691a5d911004300914m6b7bc86j2620533bec33f0e9@mail.gmail.com> (raw)
In-Reply-To: <20100429223850.14143862@pws-pc>

On Thu, Apr 29, 2010 at 2:38 PM, Peter Stephenson
<p.w.stephenson@ntlworld.com> wrote:
> More from the world of "The Hairiest Shell Function in History, No,
> Really, I Mean, Like, Ever".

Yeah, I keep wondering if it's not way hairier than even necessary, as
a side-effect of having been evolved out of predecessors each of which
was slightly hairier than the one before.

> Well, the input is supposed to be unquoted in two stages.  Or something.
> I ran across this trying to complete [...]
> with accept-exact-dirs set.  That has the added interest over setting
> path-completion to false that you then need a completely unquoted string
> to test as a directory, and the added gotcha that if that doesn't work
> it just blithely carries on doing normal completion so it doesn't
> exercise the logic to put the directory onto the path immediately.

This jibes [*] with my recollection of previous forays into this
swamp, although I never made it as far as discovering that a second
differently-(un)quoted variant of the value in tmp1 was necessary to
press on to the next patch of firm ground.

[*] No, it does not "jive."

> Of course, with code this trivial it's hard to make a mistake.  Sob.

If it were all trivial we'd never have any fun.


  parent reply	other threads:[~2010-04-30 17:16 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-13 16:33 Matt Wright
2010-04-13 16:45 ` Peter Stephenson
2010-04-13 17:11   ` Matt Wright
2010-04-13 20:33   ` Matt Wright
2010-04-14  9:14     ` Peter Stephenson
2010-04-14  9:47       ` Peter Stephenson
2010-04-14 10:01         ` Peter Stephenson
2010-04-14 17:20           ` Matt Wright
2010-04-23 15:01         ` Matt Wright
2010-04-23 21:44           ` Peter Stephenson
2010-04-29 21:38             ` Peter Stephenson
2010-04-29 22:14               ` Matt Wright
2010-04-30  8:32                 ` Peter Stephenson
2010-04-30 16:05                   ` Matt Wright
2010-05-05  4:55                   ` Matt Wright
2010-05-05  9:58                     ` Peter Stephenson
2010-07-29 15:46                   ` Matt Wright
2010-08-03 12:59                     ` Peter Stephenson
2010-04-30 16:14               ` Bart Schaefer [this message]
2010-06-25 12:27 Yves Frederix

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=m2v691a5d911004300914m6b7bc86j2620533bec33f0e9@mail.gmail.com \
    --to=schaefer@brasslantern.com \
    --cc=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).