1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-11-09 15:09:03 -08:00

support new compatibility flags in tableize

This commit is contained in:
Connor Olding 2024-07-22 05:40:18 -07:00
parent 3a1ab5d5bc
commit 7fe356faf7

View file

@ -59,6 +59,7 @@ tableize() {
continue
fi
check=0
set -f
IFS=' '
for flag in $decom; do case "$flag" in
@ -71,6 +72,15 @@ tableize() {
(NO_BASH) bash=no;;
(NO_DASH) dash=no;;
(NO_ASH) ash=no;;
(compat:) check=1;;
(+ash) [ "$check" = 0 ] || ash=yes;;
(+bash) [ "$check" = 0 ] || bash=yes;;
(+dash) [ "$check" = 0 ] || dash=yes;;
(+zsh) [ "$check" = 0 ] || zsh=yes;;
(-ash) [ "$check" = 0 ] || ash=no;;
(-bash) [ "$check" = 0 ] || bash=no;;
(-dash) [ "$check" = 0 ] || dash=no;;
(-zsh) [ "$check" = 0 ] || zsh=no;;
('#'*) break;;
esac done
done < "$f"