In the example below:
w ^ ls
what's the expected behaviour of the XOR operator in shell?
So when we enter
command ^ anothercommand
what triggers anothercommand to run (if it will execute at all)?
As you can see in man bash, ^ is not used to separate commands, it's used inside arithmetic expressions.
$ echo $(( 5 ^ 9 ))
12
That's because
dec     bin
 5     0101
 9     1001
-----------
12     1100
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With