zsh-users
 help / color / mirror / code / Atom feed
From: TJ Luoma <luomat@gmail.com>
To: Peter Stephenson <p.stephenson@samsung.com>
Cc: Zsh-Users List <zsh-users@zsh.org>
Subject: Re: tab completion bug?
Date: Thu, 23 Oct 2014 09:26:04 -0400	[thread overview]
Message-ID: <CADjGqHumk0T0c-FOa7at99t1bEh9qrd8rikZSa5ph=PNM4i0PQ@mail.gmail.com> (raw)
In-Reply-To: <20141023140616.456fa1f1@pwslap01u.europe.root.pri>

On Thu, Oct 23, 2014 at 9:06 AM, Peter Stephenson
<p.stephenson@samsung.com> wrote:

> echo /Users/luomat/Dropbox/sites/<TAB>
>
> produces sensible results?

Aha!

I wanted to make sure I was testing exactly what you suggested, so I
did a copy/paste your command (not including the <TAB> of course)

        echo /Users/luomat/Dropbox/sites/

and then pressed <tab> which gave me

        echo /Users/luomat/Dropbox/Sites/

pressing <tab> again gave me content of $sites/

SO, I went to ~/.zshrc and changed

       sites="$db/sites"

to

       sites="$db/Sites"

and I can do:

       cd $sites/<tab>

and get the list of the directories as expected.

SOLUTION: Make sure that the variables/named directories are named
more precisely in ~/.zshrc


Note that the actual directory is named "Sites" and there is no
"sites" folder. The Mac OS X filesystem (HFS+) is "case preserving but
not case sensitive" (which I've always disliked, and now I have yet
another reason why).


I would still suggest that the original behavior which left me with
"cd $sites//Users/luomat/Dropbox/Sites/" is a zsh bug, but I will
leave that decision to those more qualified to answer.

Thanks for helping me figure this out!

TjL


  reply	other threads:[~2014-10-23 13:27 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-23 12:15 TJ Luoma
2014-10-23 12:25 ` René Neumann
2014-10-23 12:43   ` TJ Luoma
2014-10-23 12:31 ` Peter Stephenson
2014-10-23 12:39   ` TJ Luoma
2014-10-23 13:06     ` Peter Stephenson
2014-10-23 13:26       ` TJ Luoma [this message]
2014-10-24  2:23         ` Bart Schaefer
2014-10-24 11:59           ` TJ Luoma
2014-10-24 12:06         ` Peter Stephenson
2014-10-24 19:55           ` TJ Luoma
2014-10-23 12:42   ` Peter Stephenson
2014-10-23 12:44 ` Eric & Jolanda

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='CADjGqHumk0T0c-FOa7at99t1bEh9qrd8rikZSa5ph=PNM4i0PQ@mail.gmail.com' \
    --to=luomat@gmail.com \
    --cc=p.stephenson@samsung.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).