in reply to Re: capturing stderr of echo piped to a file
in thread capturing stderr of echo piped to a file
Your statement is simply not true. The order of the redirects doesn't matter and in my experience having 2>&1 at the end of the line is much more common. A simple test on the command line with a perl script that issues a warn as well as a print statement will demonstrate this.
You must always remember that the primary goal is to drain the swamp even when you are hip-deep in alligators.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: capturing stderr of echo piped to a file
by Crackers2 (Parson) on Oct 29, 2014 at 19:17 UTC | |
by boftx (Deacon) on Oct 29, 2014 at 19:26 UTC | |
by Crackers2 (Parson) on Oct 29, 2014 at 20:13 UTC | |
by boftx (Deacon) on Oct 29, 2014 at 23:21 UTC | |
by Crackers2 (Parson) on Oct 30, 2014 at 18:31 UTC |
In Section
Seekers of Perl Wisdom