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

Re: _history-complete-older buggy



On Nov 23,  1:01pm, Mikael Magnusson wrote:
}
} If i type a * and press _history-complete-older, i get this output
} 
} _all_labels:39: unmatched "

The error is coming from here:

#0  zerr (fmt=0x813efdb "unmatched %c") at ../../zsh-4.0/Src/utils.c:149
#1  0x08086521 in gettokstr (c=1, sub=1) at ../../zsh-4.0/Src/lex.c:1363
#2  0x08086ef7 in parse_subst_string (s=0xb7cc4b68 "71.134.26.26\232\212")
    at ../../zsh-4.0/Src/lex.c:1629
#3  0x080fa52f in comp_match (pfx=0xb7d03738 "*", sfx=0xb7d03740 "", 
    w=0xb7cd8860 "71.134.26.26\"$", cp=0xb7d03700, clp=0xbfede8bc, qu=0, 
    bpl=0xbfede880, bcp=0, bsl=0xbfede878, bcs=0, exact=0xbfede8cc)
    at ../../../zsh-4.0/Src/Zle/compmatch.c:1036
#4  0x080f52b5 in addmatches (dat=0xbfede9a0, argv=0xb7cde394)
    at ../../../zsh-4.0/Src/Zle/compcore.c:2420
#5  0x080ed8b5 in bin_compadd (name=0xb7cf2db0 "compadd", argv=0xbfedea3c, 
    ops=0xbfedea90, func=0) at ../../../zsh-4.0/Src/Zle/complete.c:742

I note this comment in comp_match():

	     * Almost certainly this fails in some complicated cases
	     * but it should catch the basic ones.

I wonder if comp_match() should set noerrs before parse_subst_string()?
Or perhaps there's a more comprehensive (and less hackish) fix.



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