move comments outside the 'for cmd' loop

This commit is contained in:
Maxim Belkin 2019-11-04 10:18:53 -06:00
parent 99e308753b
commit 7349178adc
No known key found for this signature in database
GPG Key ID: AC71560D4C5F2338

View File

@ -19,10 +19,12 @@ symlink_target_directory() {
quiet_cd "$directory" && quiet_cd "$target_dirname" && pwd -P
}
# Unset functions that override Bash builtins
# Enable all Bash builtins
for cmd in $(compgen -A builtin)
do
unset -f $cmd # Unset functions that override Bash builtins
enable $cmd # Enable all Bash builtins
unset -f $cmd
enable $cmd
done
unset cmd