From ada478997c5429520a1b3d0519db9ddea4d205cb Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 1 Dec 2018 11:13:47 +1300 Subject: Don't include dotfiles in keep() names Variable and function names in Bash can't start with a period, so it's not appropriate to use the `dotglob` shell option to include dotfiles. --- bash/bashrc.d/keep.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bash') diff --git a/bash/bashrc.d/keep.bash b/bash/bashrc.d/keep.bash index ab89288e..a39d2fa7 100644 --- a/bash/bashrc.d/keep.bash +++ b/bash/bashrc.d/keep.bash @@ -131,7 +131,7 @@ EOF # Otherwise the user must want us to print all the NAMEs kept ( - shopt -s dotglob nullglob + shopt -s nullglob declare -a keeps keeps=("$bashkeep"/*.bash) keeps=("${keeps[@]##*/}") -- cgit v1.2.3