5

What is $((x|y)) ?

view full story
linux-howto

http://www.unix.com – 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! Code: $ echo $((1|1)) 1 $ echo $((1|2)) 3 $ echo $((1|3)) 3 $ echo $((1|4)) 5 (HowTos)