mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
Fixed typeset +m
is a zsh specific feature (#49)
This commit is contained in:
@ -79,7 +79,7 @@ function try_alias_value() {
|
||||
# 0 if the variable exists, 3 if it was set
|
||||
#
|
||||
function default() {
|
||||
test `typeset +m "$1"` && return 0
|
||||
typeset -p "$1" &>/dev/null && return 0
|
||||
typeset -g "$1"="$2" && return 3
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user