zsh-workers
 help / color / mirror / code / Atom feed
* Something very weird just happened
@ 1999-02-11  6:44 Bart Schaefer
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 1999-02-11  6:44 UTC (permalink / raw)
  To: zsh-workers

I ran `zed -f __find` where __find is from the new-completion-examples, and
a lot of the '-' characters inside [[ ... ]] expressions got doubled.  I
suspect somebody forgot to tweak a pretty-printing routine to handle the new
condition codes?

Here's the output of `functions __find`:

__find () {
        local _opre _oipre _oargs _ocur
        _opre="$PREFIX" 
        _oipre="$IPREFIX" 
        _oargs=("$@") 
        _ocur="$CURRENT" 
        if [[ -mbetween --(ok|exec) \\\; ]]
        then
                do-complete "$@" || return 1
        elif [[ --iprefix - ]]
        then
                complist -s 'daystart {max,min,}depth follow noleaf version xdev \
        {a,c,}newer {a,c,m}{min,time} empty false {fs,x,}type gid inum links \
        {i,}{l,}name {no,}{user,group} path perm regex size true uid used \
        exec {f,}print{f,0,} ok prune ls'
                PREFIX="$_opre" 
                IPREFIX="$_oipre" 
                argv=("$_oargs[@]") 
                CURRENT="$_ocur" 
        elif [[ --position 1 ]]
        then
                complist -g '. ..'
                files -g '(-/)'
        elif [[ -mcurrent --1 -((a|c|)newer|fprint(|0|f)) ]]
        then
                files
        elif [[ -current --1 -fstype ]]
        then
                complist -k '(ufs 4.2 4.3 nfs tmp mfs S51K S52K)'
        elif [[ -current --1 -group ]]
        then
                complist -k groups
        elif [[ -current --1 -user ]]
        then
                complist -u
        fi
}

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


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

* Re:  Something very weird just happened
@ 1999-02-11  7:40 Sven Wischnowsky
  0 siblings, 0 replies; 2+ messages in thread
From: Sven Wischnowsky @ 1999-02-11  7:40 UTC (permalink / raw)
  To: zsh-workers


Bart Schaefer wrote:

> I ran `zed -f __find` where __find is from the new-completion-examples, and
> a lot of the '-' characters inside [[ ... ]] expressions got doubled.  I
> suspect somebody forgot to tweak a pretty-printing routine to handle the new
> condition codes?

Yes. Actually I changed text.c to print the new condition codes
correctly, then changed the way their names are stored and forgot to
change text.c for this.

Bye
 Sven

--- os/text.c	Thu Feb 11 08:38:46 1999
+++ Src/text.c	Thu Feb 11 08:38:58 1999
@@ -415,7 +415,6 @@
 	    /* Module defined prefix condition. */
 	    char **p = (char **) nm->right;
 
-	    taddstr("-");
 	    taddstr(nm->left);
 	    for (; *p; p++) {
 		taddstr(" ");
@@ -426,7 +425,7 @@
     case COND_MODI:
 	/* Module defined infix condition. */
 	taddstr(((char **) nm->right)[0]);
-	taddstr(" -");
+	taddstr(" ");
 	taddstr(nm->left);
 	taddstr(" ");
 	taddstr(((char **) nm->right)[1]);

--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


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

end of thread, other threads:[~1999-02-11  7:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-02-11  6:44 Something very weird just happened Bart Schaefer
1999-02-11  7:40 Sven Wischnowsky

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