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

computil problems?



I found some completion problems.

Z(2):akr@is27e1u11% Src/zsh -f
is27e1u11% bindkey -e; fpath=($PWD/Completion/*(/)); autoload -U compinit; compinit -D; compdef _tst tst
is27e1u11% compconf group_matches=yes message_format='%d' description_format='%d'
is27e1u11% compconf describe_options=yes describe_values=yes option_prefix=yes

(1) flex -<TAB> show the option "+" incorrectly.

is27e1u11% flex -<TAB>
option
-  -- generate C++ scanner class
-7 -- generate 7-bit scanner
...

In pws-6, options are showd as:

option
-+ -- generate C++ scanner class
-7 -- generate 7-bit scanner
...

(2) bison <TAB> doesn't complete files at all.

is27e1u11% bison <TAB>

In pws-6, it completes files in current directory.

# I found that _bison doesn't treat *.y specialy...
# It should be treated as well as *.(yacc|bison).

(3) bison Sr<TAB> completes option letters after "Sr"

is27e1u11% bison Sr<TAB>
option
-V -- show version
...

(4) cvs add <TAB> completes cvs commands.

is27e1u11% cvs add <TAB>
cvs command
add       commit    export    log       release   tag       watchers
admin     diff      history   login     remove    unedit    
annotate  edit      import    logout    rtag      update    
checkout  editors   init      rdiff     status    watch     

Of course, it should complete arguments for `cvs add'.  Following
example shows the problem more simply.

is27e1u11% _tst () { _arguments -s '-d+:msg1:' '*::msg2:_tst2' }
is27e1u11% _tst2 () { compadd $CURRENT }
is27e1u11% tst add <TAB>
->
is27e1u11% tst add 1

It should be complete "2" rather than "1".
# pws-6 completes "2".
-- 
Tanaka Akira



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