mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
lib/utils: Add "_omb_util_split"
This commit is contained in:
@@ -400,6 +400,14 @@ function _omb_util_glob_expand {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function _omb_util_split {
|
||||||
|
local __set=$- IFS=${3:-$' \t\n'}
|
||||||
|
set -f
|
||||||
|
eval -- "$1=(\$2)"
|
||||||
|
[[ $__set == *f* ]] || set +f
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
function _omb_util_alias {
|
function _omb_util_alias {
|
||||||
case ${OMB_DEFAULT_ALIASES:-enable} in
|
case ${OMB_DEFAULT_ALIASES:-enable} in
|
||||||
(disable) return 0 ;;
|
(disable) return 0 ;;
|
||||||
|
Reference in New Issue
Block a user