diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-22 12:14:29 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-22 12:14:29 +1300 |
commit | bba6f1086e5de1910a586a32e78551838c3ca8d7 (patch) | |
tree | 8dae991d3e9410a708ae83a01436f8d22f686249 /bash | |
parent | Add comment to vest(1df) (diff) | |
download | dotfiles-bba6f1086e5de1910a586a32e78551838c3ca8d7.tar.gz dotfiles-bba6f1086e5de1910a586a32e78551838c3ca8d7.zip |
Use [!...] not [^...]
More portable
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 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++)) |