summaryrefslogtreecommitdiffhomepage
path: root/subr
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2021-08-19 18:02:16 +0200
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2021-08-19 18:02:16 +0200
commita7ecdcf5d0d55e8e695d5724c579f89ca2704f87 (patch)
tree0cfea1e3d2f5e87d5e3dc4ee3b139c546f50875d /subr
parent5267e85792ae0c03106405bb8b3b7150f027c935 (diff)
downloadmidipix_build-a7ecdcf5d0d55e8e695d5724c579f89ca2704f87.tar.bz2
midipix_build-a7ecdcf5d0d55e8e695d5724c579f89ca2704f87.tar.xz
Switch to portable [!...] vs. [^...] patterns.
Diffstat (limited to 'subr')
-rw-r--r--subr/build_init.subr4
-rw-r--r--subr/ex_pkg_restart.subr2
2 files changed, 3 insertions, 3 deletions
diff --git a/subr/build_init.subr b/subr/build_init.subr
index 2d78da91..1e0c7d18 100644
--- a/subr/build_init.subr
+++ b/subr/build_init.subr
@@ -191,8 +191,8 @@ buildp_init_getopts() {
fi;
case "${_arg}" in
*=*) rtl_set_var_unsafe "${_arg%%=*}" "${_arg#*=}"; ;;
- [^a-zA-Z]*) _rc=1; _status="Error: build group names must start with [a-zA-Z] (in argument \`${_arg}'.)"; ;;
- *[^_a-zA-Z]*) _rc=1; _status="Error: build group names must not contain [^_a-zA-Z] (in argument \`${_arg}'.)"; ;;
+ [!a-zA-Z]*) _rc=1; _status="Error: build group names must start with [a-zA-Z] (in argument \`${_arg}'.)"; ;;
+ *[!_a-zA-Z]*) _rc=1; _status="Error: build group names must not contain [!_a-zA-Z] (in argument \`${_arg}'.)"; ;;
*) BUILD_GROUPS="$(rtl_lconcat "${BUILD_GROUPS}" "${_arg}")"; ;;
esac; shift;
fi;
diff --git a/subr/ex_pkg_restart.subr b/subr/ex_pkg_restart.subr
index d6f2bee5..9e51df8b 100644
--- a/subr/ex_pkg_restart.subr
+++ b/subr/ex_pkg_restart.subr
@@ -150,7 +150,7 @@ exp_pkg_expand_restart_at_virtual() {
_epera_at="${1}"; shift;
if [ "${_epera_at#@}" != "${_epera_at}" ]; then
_epera_at="${_epera_at#@}";
- if [ "${_epera_at%[^0-9a-zA-Z_]*}" != "${_epera_at}" ]; then
+ if [ "${_epera_at%[!0-9a-zA-Z_]*}" != "${_epera_at}" ]; then
_status="invalid virtual build step \`${_epera_at}'"; _epera_rc=1;
elif eval [ '"${'"${_epera_rset}${_epera_at}"':+1}"' = 1 ]; then
eval _epera_at='${'"${_epera_rset}${_epera_at}"'}';