public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
* Wrong more(1) bash-completion on filenames with spaces
@ 2013-07-01 14:49 Ángel González
  2013-09-30 13:51 ` Karel Zak
  0 siblings, 1 reply; 2+ messages in thread
From: Ángel González @ 2013-07-01 14:49 UTC (permalink / raw)
  To: util-linux

The bash completion for more(1) treats the space-separated pieces of 
filenames as different files.

$ touch foo\ bar
$ more foo<TAB>
bar foo

Trying to hint the space doesn't help, either:
more foo\<TAB> → more foo\\
more foo\\<TAB> → more foo\\\\
more foo\\ <TAB> → more foo\\\

Workaround: Remove the bash completion and use the default one:
$ chmod a-r /usr/share/bash-completion/completions/more



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

* Re: Wrong more(1) bash-completion on filenames with spaces
  2013-07-01 14:49 Wrong more(1) bash-completion on filenames with spaces Ángel González
@ 2013-09-30 13:51 ` Karel Zak
  0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2013-09-30 13:51 UTC (permalink / raw)
  To: Ángel González; +Cc: util-linux

On Mon, Jul 01, 2013 at 04:49:00PM +0200, Ángel González wrote:
> The bash completion for more(1) treats the space-separated pieces of
> filenames as different files.
> 
> $ touch foo\ bar
> $ more foo<TAB>
> bar foo

 Fixed. Thanks!

    Karel

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

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

end of thread, other threads:[~2013-09-30 13:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-01 14:49 Wrong more(1) bash-completion on filenames with spaces Ángel González
2013-09-30 13:51 ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox