zsh-workers
 help / color / mirror / code / Atom feed
* bug: DIR/*<tab> expansion doesn't work with directories with apostrophe in the name
@ 2010-12-29 14:51 Hrvoje Nikšić
  2010-12-30  2:07 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Hrvoje Nikšić @ 2010-12-29 14:51 UTC (permalink / raw)
  To: zsh-workers

The zsh FAQ states that this is the address for reporting zsh bugs. As
a Ubuntu user I've reported this bug in launchpad, but I'm not
convinced that launchpad developers forward their bugs upstream, so
I'm Cc'ing it here. Please ignore if it has already been reported.


When the directory contains a single quote (apostrophe) in its name,
pressing the tab key to expand dir/* into a list of files no longer
works. What happens instead is that the tab key doesn't do anything
while cursor is inside the dir/* word.

This worked as expected in previous versions of zsh. In zsh 4.3.10
(specifically 4.3.10-14ubuntu1, Ubuntu maverick) it works only for
directories without apostrophes in the name. I discovered it while
trying to choose mp3s to queue in a music player, with the mp3s
residing in a directory with apostrophe in the name.

Here is a recipe to repeat the bug:

$ zsh -f
mulj% mkdir "a'b"
mulj% touch "a'b"/{1,2,3}
mulj% ls a\'b/* # press TAB with cursor immediately after the *, nothing happens
# pressing enter correctly executes the (expanded) command:
a'b/1 a'b/2 a'b/3
mulj% mv a\'b ab
mulj% ls ab/* # now pressing TAB with cursor immediately after the * correctly
                    # expands ab/* to ab/1 ab/2 ab/3
mulj% ls ab/1 ab/2 ab/3


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: bug: DIR/*<tab> expansion doesn't work with directories with apostrophe in the name
  2010-12-29 14:51 bug: DIR/*<tab> expansion doesn't work with directories with apostrophe in the name Hrvoje Nikšić
@ 2010-12-30  2:07 ` Bart Schaefer
  2010-12-30  8:51   ` Hrvoje Nikšić
  0 siblings, 1 reply; 3+ messages in thread
From: Bart Schaefer @ 2010-12-30  2:07 UTC (permalink / raw)
  To: zsh-workers

On Dec 29,  3:51pm, hniksic@gmail.com wrote:
} Subject: bug: DIR/*<tab> expansion doesn't work with directories with apos
}
} When the directory contains a single quote (apostrophe) in its name,
} pressing the tab key to expand dir/* into a list of files no longer
} works. What happens instead is that the tab key doesn't do anything
} while cursor is inside the dir/* word.

As you're seeing this with zsh -f, it's something in old compctl-based
completion.  With the newer function-based system, it behaves the same 
for me in 4.3.11-dev-1 as it does in 4.2.0 (both of which differ from
the way it [doesn't] work with zsh -f).

I can confirm that 4.3.11-dev-1 run with -f behaves the way you describe
4.3.10-14ubuntu1 as working, but 4.2.0 *also* behaves for me the way you
describe 4.3.10-14ubuntu1 as working, so I'm not sure which version you
had that worked differently.

-- 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: bug: DIR/*<tab> expansion doesn't work with directories with apostrophe in the name
  2010-12-30  2:07 ` Bart Schaefer
@ 2010-12-30  8:51   ` Hrvoje Nikšić
  0 siblings, 0 replies; 3+ messages in thread
From: Hrvoje Nikšić @ 2010-12-30  8:51 UTC (permalink / raw)
  To: Bart Schaefer; +Cc: zsh-workers

On Thu, Dec 30, 2010 at 3:07 AM, Bart Schaefer
<schaefer@brasslantern.com> wrote:
> I can confirm that 4.3.11-dev-1 run with -f behaves the way you describe
> 4.3.10-14ubuntu1 as working, but 4.2.0 *also* behaves for me the way you
> describe 4.3.10-14ubuntu1 as working, so I'm not sure which version you
> had that worked differently.

I might be misremembering about the previously working version(s). I
no longer have older installs to check.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-12-30  8:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-29 14:51 bug: DIR/*<tab> expansion doesn't work with directories with apostrophe in the name Hrvoje Nikšić
2010-12-30  2:07 ` Bart Schaefer
2010-12-30  8:51   ` Hrvoje Nikšić

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).