develooper Front page | perl.macperl.porters | Postings from November 2002

'> /dev/null 2>&1' equivalent?

Thread Next
From:
Michael G Schwern
Date:
November 16, 2002 18:57
Subject:
'> /dev/null 2>&1' equivalent?
Message ID:
20021117025622.GC23184@ool-18b93024.dyn.optonline.net
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?


-- 

Michael G. Schwern   <schwern@pobox.com>    http://www.pobox.com/~schwern/
Perl Quality Assurance      <perl-qa@perl.org>         Kwalitee Is Job One
There is a disurbing lack of PASTE ENEMA on the internet.

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About