aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-12-01 11:13:47 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-12-01 11:13:47 +1300
commitada478997c5429520a1b3d0519db9ddea4d205cb (patch)
tree1d42337472e4d88959cac000d25888e0e18fc593 /bash/bashrc.d
parentUse consistent comments for version numbers (diff)
downloaddotfiles-ada478997c5429520a1b3d0519db9ddea4d205cb.tar.gz
dotfiles-ada478997c5429520a1b3d0519db9ddea4d205cb.zip
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.
Diffstat (limited to 'bash/bashrc.d')
-rw-r--r--bash/bashrc.d/keep.bash2
1 files changed, 1 insertions, 1 deletions
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[@]##*/}")