aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/keep.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-12-22 12:14:29 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-12-22 12:14:29 +1300
commitbba6f1086e5de1910a586a32e78551838c3ca8d7 (patch)
tree8dae991d3e9410a708ae83a01436f8d22f686249 /bash/bashrc.d/keep.bash
parentfafc30f56847dced996ce7d4fde9ea4da49572c3 (diff)
downloaddotfiles-bba6f1086e5de1910a586a32e78551838c3ca8d7.tar.gz
dotfiles-bba6f1086e5de1910a586a32e78551838c3ca8d7.zip
Use [!...] not [^...]
More portable
Diffstat (limited to 'bash/bashrc.d/keep.bash')
-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 85455824..a13fec12 100644
--- a/bash/bashrc.d/keep.bash
+++ b/bash/bashrc.d/keep.bash
@@ -90,7 +90,7 @@ EOF
# NAME must start with letters or an underscore, and contain no
# characters besides letters, numbers, or underscores
- *[^a-zA-Z0-9_]*|[^a-zA-Z_]*)
+ *[!a-zA-Z0-9_]*|[!a-zA-Z_]*)
printf 'bash: %s: %s not a valid NAME\n' \
"${FUNCNAME[0]}" "$name" >&2
((errors++))