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

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

Thread Next
Michael G Schwern
November 16, 2002 18:57
'> /dev/null 2>&1' equivalent?
Message ID:
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 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   <>
Perl Quality Assurance      <>         Kwalitee Is Job One
There is a disurbing lack of PASTE ENEMA on the internet.

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About