Re: [MacPerl-Porters] '> /dev/null 2>&1' equivalent?
[email protected] (Chris Nandor) Sat, 16 Nov 2002 22:48:12 -0500
| Newsgroups | perl.macperl.porters |
|---|---|
| Message-ID | <p05200f0db9fcc1344bce@[10.0.1.177]> |
At 21:56 -0500 2002.11.16, Michael G Schwern wrote:
>MakeMaker defines a macro to tack onto the end of a shell command to make it
>silent. DEV_NULL.
>
>On Unix its '> /dev/null 2>&1'.
>Windows defines it as '> NUL'.
>
>MacOS Classic doesn't have a definition and that causes problems. It means
>more code that really has to be is overriden in MM_MacOS.pm to strip out
>$(DEV_NULL) calls.
>
>Is there something MakeMaker can stick on the end of a command in the MPW
>shell (I think its the MPW shell that MM_MacOS is typically run with) to
>supress its output?
Yeah, it is also noted in test.pl:runperl():
$runperl .= " \xB3 Dev:Null" if !$args{stderr} && $is_macos;
By default, stderr and stdout are both returned together. \xB3 ("") will
redirect STDERR. Dev:Null is the null device.
--
Chris Nandor [email protected] http://pudge.net/
Open Source Development Network [email protected] http://osdn.com/