why red echo does not return '2' while green one does?
Code:
$ unset C
$ { ls missing 2>&1;C=$?; }
ls: 0653-341 The file missing does not exist.
$ [COLOR=#8AE234]echo $C[/color]
2
$ unset C
$ { ls missing 2>&1;C=$?; }|sed s/^/error:\ /g
error: ls: 0653-341 The file missing does not exist.
$ [COLOR=#EF2929]echo $C[/color]
$