[Libguestfs] [PATCH 1/1] guestfish: Tab-complete single / double quoted filenames containing space -- add fish_completion_word_break_characters_hook
Richard W.M. Jones
rjones at redhat.com
Mon May 20 09:18:05 UTC 2013
On Sun, May 19, 2013 at 09:23:59AM -0400, Jan Lieskovsky wrote:
> +/* Readline word break hook for (guest)fish
> + * Exclude space from the set of word break characters if Readline's buffer
> + * contains path and some of possible tab-completions includes space.
> + * Return basic / default set of word break characters otherwise
> + */
> +char *
> +fish_completion_word_break_characters (void)
This function should be declared static.
I tried these patches but they don't quite work for me:
><fs> ll "/Program<TAB><TAB>
gives:
><fs> ll "/Program Files"/
libguestfs: error: readdir: opendir: /Program Files": No such file or directory
It seems to be including a rogue quote in the filename.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
More information about the Libguestfs
mailing list