Phoenix Himself

Results 280 comments of Phoenix Himself

@hdwalters I see then. I'll try to implement this logic and introduce `bash_version` function that returns an array instead.

After some research I realized that comparison of numerical arrays can be expressed this way: ```bash l=(31 3) r=(3 99) [[ "${l[*]}" > "${r[*]}" ]] && echo "greater" ```

@hdwalters We cannot compare lexically. Here is a contradiction: ``` let left = [51, 34, 23] let right = [9, 34, 23] let result = left >= right echo result...

Okay I've added the comparison operator for numeric arrays and it works correctly now.

@b1ek @Mte90 I've fixed the clippy errors

I've addressed all the concerns, @KrosFire

@Mte90 I'm still working on this - I had to push the changes because I started coding this on my iPad on GitHub Codespaces and then I came back home...

> shouldn't this be implemented as a part of a broader code scanning solution, rather than a separate construct? I'm not sure what do you mean. Every compiler has some...

This PR works for simple variables but I'm still working on clearing up transitive variable relations like: ``` // These all should be cleared in bash: let a = 12...

@Mte90 yes, thanks for spotting this!