varstash: fix pattern in stash

This commit is contained in:
Daniel Hahler 2014-12-18 20:36:54 +01:00
parent 07abe9cea8
commit be306b1178
1 changed files with 2 additions and 2 deletions

View File

@ -175,9 +175,9 @@ function stash() {
local vartype="$(declare -p $stash_which 2>/dev/null)"
if [[ -n $vartype ]]; then
if [[ -n $ZSH_VERSION ]]; then
local pattern="^typeset"
local pattern="typeset"
else
local pattern="^declare"
local pattern="declare"
fi
if [[ $vartype == $pattern" -a"* ]]; then
# varible is an array