diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-01 11:13:47 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-01 11:13:47 +1300 |
commit | ada478997c5429520a1b3d0519db9ddea4d205cb (patch) | |
tree | 1d42337472e4d88959cac000d25888e0e18fc593 /bash | |
parent | Use consistent comments for version numbers (diff) | |
download | dotfiles-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')
-rw-r--r-- | bash/bashrc.d/keep.bash | 2 |
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[@]##*/}") |