X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=selector.git;a=blobdiff_plain;f=bash-selector.sh;fp=bash-selector.sh;h=7246d4507b334643f0d157f591f070600ead81b3;hp=9d0355f8c81c5e2f08fd545d7bdb790461b4b4a9;hb=1466e427f9330b8d3737e3870a8e7ce9d156c423;hpb=1aa565009ad61685f500171528b22a1c4c07b40e diff --git a/bash-selector.sh b/bash-selector.sh index 9d0355f..7246d45 100755 --- a/bash-selector.sh +++ b/bash-selector.sh @@ -61,7 +61,7 @@ export SELECTOR_CD_HISTORY_SIZE # The function to use in place of the standard "cd" function selector-cd () { - UMASK=$(umask) + local UMASK=$(umask) umask 077 if [[ -z "$1" ]]; then @@ -82,7 +82,7 @@ function selector-cd () { } function selector-cd-search () { - UMASK=$(umask) + local UMASK=$(umask) umask 077 if [[ -f "${SELECTOR_CD_HISTORY}" ]]; then