zsh-users
 help / color / mirror / code / Atom feed
From: Ray Andrews <rayandrews@eastlink.ca>
To: zsh-users@zsh.org
Subject: Re: Reading difficult directory name correctly:
Date: Thu, 10 Dec 2020 17:25:58 -0800	[thread overview]
Message-ID: <c323d1e6-6fbd-e153-0008-b5f36bc29064@eastlink.ca> (raw)
In-Reply-To: <CAH+w=7YCQRKwNdzP5oj0pfHk4oTAwPyhXw2HQud0o1-ANnzrjQ@mail.gmail.com>

On 2020-12-10 2:32 p.m., Bart Schaefer wrote:

I added this to the bottom of my config file:

     ###
     #autoload -U compinit && compinit -d $ZSHBOOT/zcompdump
     autoload -U compinit -D && compinit -d $ZSHBOOT/zcompdump
     zstyle '*' format %d

... and it made no difference.  First TAB gives the partial completion.  
Second TAB adds the

     Completing `file'

message, but nothing is added -- no files are offered nor is the partial 
line completed.


> A file will be written with a backtrace of what the completion system
> did.  An entry is made in the shell history providing the name of the
> file.
Yikes, it's 420 lines long :(

This auto created directory is the only case I know of where anything 
like this happens so it's hardly a big deal in practice, still I'm 
curious, but don't waste any time on it Bart.

One more experiment: no changes to config but:

     7 /aMisc 5 $ zsh -f
g5--9-Debian1#
     g5--9-Debian1# rm Sky\ above\ 49°30\'N\ 123°30\'W\ at\ Fri\ 2020\ 
Dec\ 11\ 0\ 58
     Sky\ above\ 49°30\'N\ 123°30\'W\ at\ Fri\ 2020\ Dec\ 11\ 0\ 58.html
     Sky\ above\ 49°30\'N\ 123°30\'W\ at\ Fri\ 2020\ Dec\ 11\ 0\ 58_files/

So, it works as you described -- second TAB shows both the file and the 
directory and completion cycles thru them.

So I broke something.



      reply	other threads:[~2020-12-11  1:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-10 21:47 Ray Andrews
2020-12-10 22:00 ` Bart Schaefer
2020-12-10 22:23   ` Ray Andrews
2020-12-10 22:32     ` Bart Schaefer
2020-12-11  1:25       ` Ray Andrews [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=c323d1e6-6fbd-e153-0008-b5f36bc29064@eastlink.ca \
    --to=rayandrews@eastlink.ca \
    --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).