From bba6f1086e5de1910a586a32e78551838c3ca8d7 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 22 Dec 2016 12:14:29 +1300 Subject: Use [!...] not [^...] More portable --- bash/bashrc.d/keep.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++)) -- cgit v1.2.3