- Organize internal specifications
- Add --loaded option to list loaded packages
- Add --installed option to list installed packages
`list` command only lists the contents of $zplugs array.
These options were necessary to list packages such as installed.
For example, when extended_glob expression is used as the USE tag,
${~pattern} fails to expand and the function returns immediately.
To reproduce this, put the following snippet in a file and run it:
local pat='~/(^(foo))'
local -a matches
matches=( ${~pat} )
echo 'this is not printed'
The last line is not executed. To circumvent this issue, the
_ZPLUG_CONFIG_SUBSHELL variable was introduced in
a90ac9aa7f4d239af92a47c6894819c14d42c2c5. Related: #266.
This function is created to ensure a standard procedure to expand globs
and to make it easier to account for user-specified modifiers.
The behavior of USE tags in as:command is changed so that all executable
files are linked to $ZPLUG_HOME/bin when no USE is specified.