Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • by ilmari (8802) on 2009.08.11 12:28 (#69972)
    Your redirect is wrong, you need to redirect STDERR after STDOUT, since it does dup2(2, 1) which is still your terminal if you do it before.

    $ (echo foo >&2) 2>&1 >/dev/null
    $ (echo foo >&2)  >/dev/null 2>&1
    • Bah, I misread, I thought you wanted STDERR to go to /dev/null, not to cat's STDIN. Sorry.