1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-11-13 20:29:02 -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 continue
fi fi
check=0
set -f set -f
IFS=' ' IFS=' '
for flag in $decom; do case "$flag" in for flag in $decom; do case "$flag" in
@ -71,6 +72,15 @@ tableize() {
(NO_BASH) bash=no;; (NO_BASH) bash=no;;
(NO_DASH) dash=no;; (NO_DASH) dash=no;;
(NO_ASH) ash=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;; ('#'*) break;;
esac done esac done
done < "$f" done < "$f"