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

Re: More intellegent suffix removing?



I wrote:

> -    suffixlen[256] = suffixlen[' '] = suffixlen['\t'] = suffixlen['\n'] =
> -	suffixlen[';'] = suffixlen['|'] = suffixlen['&'] = 
> -	suffixlen['<'] = suffixlen['>'] = n;
> +    suffixlen[256] = suffixlen[' '] = suffixlen['\t'] = suffixlen['\n'] = 
> +	suffixlen[';'] = suffixlen['&'] = n;

Damn, damn, damn. That was wrong, wasn't it? A `a|b' is recognized as
a glob pattern only if it is in parentheses, without them this it's a
pipe. And we can't complete `(foo<TAB>' anyway.


Bye
 Sven

diff -u os/Zle/zle_misc.c Src/Zle/zle_misc.c
--- os/Zle/zle_misc.c	Fri Jun 11 10:12:14 1999
+++ Src/Zle/zle_misc.c	Fri Jun 11 10:15:28 1999
@@ -789,7 +789,7 @@
 makesuffix(int n)
 {
     suffixlen[256] = suffixlen[' '] = suffixlen['\t'] = suffixlen['\n'] = 
-	suffixlen[';'] = suffixlen['&'] = n;
+	suffixlen[';'] = suffixlen['&'] = suffixlen['|'] = n;
 }
 
 /* Set up suffix for parameter names: the last n characters are a suffix *
diff -u od/Zsh/options.yo Doc/Zsh/options.yo
--- od/Zsh/options.yo	Fri Jun 11 10:13:28 1999
+++ Doc/Zsh/options.yo	Fri Jun 11 10:16:09 1999
@@ -120,7 +120,7 @@
 item(tt(AUTO_REMOVE_SLASH))(
 When the last character resulting from a completion is a slash and the next
 character typed is a word delimiter, a slash, or a character that ends 
-a command (a semicolon or an ampersand), remove the slash.
+a command (such as a semicolon or an ampersand), remove the slash.
 )
 pindex(AUTO_RESUME)
 cindex(jobs, resuming automatically)

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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