Monthly Archives: December 2014

bash env ; and && gotcha

if you want to change a bash environment variable you need to set it in each and every bash multistatement

$ env TERM=lpr env|grep TERM ; env TERM=lpr env|grep TERM
TERM=lpr
COLORTERM=xfce4-terminal
TERM=lpr
COLORTERM=xfce4-terminal

$ env TERM=lpr env|grep TERM && env TERM=lpr env|grep TERM
TERM=lpr
COLORTERM=xfce4-terminal
TERM=lpr
COLORTERM=xfce4-terminal