mirror of
https://github.com/Tarrasch/zsh-autoenv.git
synced 2025-12-14 18:25:12 +02:00
varstash: fix pattern in stash
This commit is contained in:
@@ -175,9 +175,9 @@ function stash() {
|
|||||||
local vartype="$(declare -p $stash_which 2>/dev/null)"
|
local vartype="$(declare -p $stash_which 2>/dev/null)"
|
||||||
if [[ -n $vartype ]]; then
|
if [[ -n $vartype ]]; then
|
||||||
if [[ -n $ZSH_VERSION ]]; then
|
if [[ -n $ZSH_VERSION ]]; then
|
||||||
local pattern="^typeset"
|
local pattern="typeset"
|
||||||
else
|
else
|
||||||
local pattern="^declare"
|
local pattern="declare"
|
||||||
fi
|
fi
|
||||||
if [[ $vartype == $pattern" -a"* ]]; then
|
if [[ $vartype == $pattern" -a"* ]]; then
|
||||||
# varible is an array
|
# varible is an array
|
||||||
|
|||||||
Reference in New Issue
Block a user