I'm trying to match exit codes of a process that is documented to return hexadecimal exit codes (e.g.
0x00 for success,
0x40 - 0x4F on user error,
0x50 - 0x5F on internal error, etc.). I'd like to handle the exit code via a
case statement, but the "obvious" solution doesn't match:
$ $val = 10 $ case $val in > 0xA) echo match;; > *) echo no match;; > esac no match
Is there a readable way to match hexadecimal values in a