I'm analyzing a few scripts we have here, and what I often see in combination with return values is $((x|y)) and I can't figure out how it works and why it's used. Can anyone explain this to me? Thanks!
Well, it could tell you if, for example, either function returns an error:
Bitwize OR is useful for bitfields to set specific bits, for example where you represent X number of on-off options, in the same, X number, of bits, you can use a bitwize or to test if a specific option is set.