ksh88 + whitespace fix
This commit is contained in:
parent
a7ee16d454
commit
1c0d1139aa
@ -42,7 +42,7 @@
|
|||||||
# or LOCAL_CONFIG_FILE instead
|
# or LOCAL_CONFIG_FILE instead
|
||||||
|
|
||||||
# define the version (YYYY-MM-DD)
|
# define the version (YYYY-MM-DD)
|
||||||
typeset -r SCRIPT_VERSION="2021-01-09"
|
typeset -r SCRIPT_VERSION="2021-01-11"
|
||||||
# name of the global configuration file (script)
|
# name of the global configuration file (script)
|
||||||
typeset -r GLOBAL_CONFIG_FILE="manage_sudo.conf"
|
typeset -r GLOBAL_CONFIG_FILE="manage_sudo.conf"
|
||||||
# name of the local configuration file (script)
|
# name of the local configuration file (script)
|
||||||
@ -1144,7 +1144,9 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# expand alias line into individual aliases
|
# expand alias line into individual aliases
|
||||||
for ALIAS in ${ALIASES_LINE//,/ }
|
# do not use variable substition (>=ksh93) instead use the uglier while loop solution
|
||||||
|
# (hint: don't use a for loop as aliases may contain spaces!)
|
||||||
|
print "${ALIASES_LINE}"| while IFS=',' read -r ALIAS
|
||||||
do
|
do
|
||||||
# recurse if the alias is a group
|
# recurse if the alias is a group
|
||||||
IS_ALIAS=$(print "${ALIAS}" | grep -c -E -e '^\@' 2>/dev/null)
|
IS_ALIAS=$(print "${ALIAS}" | grep -c -E -e '^\@' 2>/dev/null)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user