Chet Ramey wrote:
trap "cat $LOG > &3" ERR { foo bar } 3>&1 > /dev/nullThat's about right, but you need >&3 in the trap command.
I did have > &3 in the trap command, see? I'm a bit worried though about hard coding the fd 3. Is there a way to get the next available fd number and save it in a variable, rather than hard code 3? _______________________________________________ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash