chkdomain icon indicating copy to clipboard operation
chkdomain copied to clipboard

Evaluate modifications for supporting Bash 3.x compatibility

Open PeterDaveHello opened this issue 10 months ago • 0 comments

The current script requires at least Bash 4.0 due to the use of modern syntax features (e.g., associative arrays). However, some environments, such as the default macOS Bash (3.x), may not support these features, potentially limiting the usability of the script.

This issue aims to explore the feasibility of making minimal modifications to achieve compatibility with Bash 3.x. Potential considerations include:

  1. Identifying features or syntax incompatible with Bash 3.x (e.g., associative arrays, specific parameter expansions).
  2. Proposing alternative implementations or workarounds for these features.
  3. Assessing the trade-offs in maintainability and code clarity.

If this compatibility adjustment introduces excessive complexity or compromises the script’s functionality, we can document the requirement for Bash 4.0+ as the minimum version instead.

PeterDaveHello avatar Jan 09 '25 15:01 PeterDaveHello