HP3000-L Archives

January 1997, Week 5

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Chris Breemer <[log in to unmask]>
Reply To:
Chris Breemer <[log in to unmask]>
Date:
Fri, 31 Jan 1997 09:36:42 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (21 lines)
Mark Bixby found out how to create /dev/null. Good stuff !

Now, /dev/null seems to have an interesting feature: I can use it for input and
redirection, but not for copying to:

        cp /dev/null blah
        rmdir blah 2>/dev/null

work as expected, but

        cp blah /dev/null

returns:

        cp: Error copying file blah to /dev/null: Implementation-defined error

Of course it's a pointless thing to do, but why should it not work ?
The silly thing is that I can write to /dev/null from a C program with no trouble.

        Chris

ATOM RSS1 RSS2