Hi David, Glenn, for command in true /bin/true; do a=$( ( b=$( $command ); echo 123 >& 3; ) 3>& 1 ) && echo a=$a command=$command done a=123 command=true a= command=/bin/true
Looks like a bug to me This was originally reported on Stackoverflow: "Why ksh disables stderr when subshell is executed?" at http://stackoverflow.com/q/17398754/667820?sem=2 My very long analysis: http://stackoverflow.com/a/21198338/667820 Only in the last couple of minutes did I see that we can reproduce the effect without the functions. The effect appears to be triggered by real subshells. Cheers, Henk _______________________________________________ ast-users mailing list ast-users@lists.research.att.com http://lists.research.att.com/mailman/listinfo/ast-users