Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: different kind of glob_complete?



On Sep 3,  9:31am, Bart Schaefer wrote:
} Subject: Re: different kind of glob_complete?
}
} [...]  even in 3.0.5 the behavior
} is the same as 3.1.6.  So I need to correct the 3.0.6 doc.

I found the 3.1.6 doc slightly confusing, so here's a patch for it, which
matches what I'm putting into the 3.0.6 doc:

Index: Doc/Zsh/options.yo
===================================================================
@@ -389,11 +389,11 @@
 item(tt(GLOB_COMPLETE))(
 When the current word has a glob pattern, do not insert all the words
 resulting from the expansion but generate matches as for completion and
-cycle through them like tt(MENU_COMPLETE). The matches are generated
-as if a `tt(*)' is added to the end of the word or inserted at the cursor if
-tt(COMPLETE_IN_WORD) is set.  Since this doesn't use globbing, it
-works not only for files but for all completions, such as options,
-user names, etc.
+cycle through them like tt(MENU_COMPLETE). The matches are generated as if
+a `tt(*)' was added to the end of the word, or inserted at the cursor when
+tt(COMPLETE_IN_WORD) is set.  This actually uses pattern matching, not
+globbing, so it works not only for files but for any completion, such as
+options, user names, etc.
 )
 pindex(GLOB_DOTS)
 cindex(globbing, of . files)

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com



Messages sorted by: Reverse Date, Date, Thread, Author