aboutsummaryrefslogtreecommitdiff
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
parentAdd comment to vest(1df) (diff)
downloaddotfiles-bba6f1086e5de1910a586a32e78551838c3ca8d7.tar.gz
dotfiles-bba6f1086e5de1910a586a32e78551838c3ca8d7.zip
Use [!...] not [^...]
More portable
-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++))