unix - Can not populate zsh autocompletion with simple ls output -


the problem can't find way populate boxes array. here's code:

local expl declare -a boxes boxes = $(ls $home/.vagrant/boxes --color=none) _wanted boxes expl 'help' compadd $boxes 

throws exception:

vagrant __box_list:13: command not found: boxes __box_list:13: command not found: boxes __box_list:13: command not found: boxes 

ls command works fine if tried manually:

ls $home/.vagrant/boxes --color=none lucid32  lucid64 

where mistake?

zsh doesn't seem spaces around =.

boxes=$(ls $home/.vagrant/boxes --color=none) works, gets step further, maybe.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -