this is only a comment, I'm not sure of this:

How about doing simply this:

```bash
if [ -n "$MOZPERFOUT" ] ; then
  exec 1> "$MOZPERFOUT"
fi
```

Not sure this is better, I also sort of like it to really define the actual commands that write to the 3rd descriptor.

What do you think ?