How do I use the bitwise logical-or operator, |, in tcsh?I enter@ y = 1001; @ z = 0110;@ x = $y|$z110: Command not found.
TCSH bitwise | operator
tcsh;arithmetic
Do you really want to do this in tcsh only? Csh and its derivative tcsh have many such quirks. You are better off with another shell like bash etc.In this particular case, it appears that throwing in a pair of parenthesis keeps tcsh happy. This is also documented in the tcsh manual:expr may contain the operators *, +, etc.,  as  in  C.   If  expr  contains  <,  >, & or | then at least that part of  expr must be placed within ().mint13:~> echo $versiontcsh 6.17.06 (Astron) 2011-04-15 (x86_64-unknown-linux) options wide,nls,dl,al,kan,rh,nd,color,filecmint13:~> @ y = 1001; @ z = 0110;mint13:~> @ x = $y|$z110: Command not found.mint13:~> @ x = ($y|$z)mint13:~> echo $x1007You might already be aware of this  tcsh is reading 1001 and 0110 as decimal numbers. I don't know how to make it understand binary numbers.