From 7fe356faf7c88b93a4d5e7ede94888cfa2d6bf83 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Mon, 22 Jul 2024 05:40:18 -0700 Subject: [PATCH] support new compatibility flags in `tableize` --- tableize | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tableize b/tableize index ec795a2..40fe191 100755 --- a/tableize +++ b/tableize @@ -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"