Amber icon indicating copy to clipboard operation
Amber copied to clipboard

[Feature] Add Bash version comparator function

Open Ph0enixKM opened this issue 8 months ago • 1 comments

Is your feature request related to a problem? Please describe. When writing PR for the issue #700 I found that we need a way to test for bash version in certain bash functions for maximal compatibility.

Describe the solution you'd like Add a standard library function that compares Bash version agains the current one. It would be nice to add an interface like:

bash_version_less_than(version)

Additional context #700

Ph0enixKM avatar Apr 28 '25 09:04 Ph0enixKM

There is a discussion of the interface: https://github.com/amber-lang/amber/issues/622

lens0021 avatar Apr 28 '25 10:04 lens0021