dev/null

Christopher Faylor cgf@redhat.com
Sun Jan 7 09:49:00 GMT 2001


On Sun, Jan 07, 2001 at 11:09:03AM -0500, Soren Andersen wrote:
>On 6 Jan 2001, an entity purporting to be Gerrit P. Haase
>[Gerrit P. Haase <gerrit.haase@t-online.de>] wrote [regarding Re: dev/null]
>
>> > Gerrit P. Haase wrote:
>
>> > > I created a dev/null, but then i got this error:
>
>> > > # of unexpected failures        2
>> > > WARNING: find_version failed:
>> > > couldn't read file "/dev/null": permission denied
>
>One thing that I have not read anybody explain yet, in this thread: the 
>WinDOS system counterpart to UNI* 'dev/null' is simply 'nul' (or 'NUL'). If 
>you need a null file to redirect IN to a command I guess you'd use that. I 
>never try to redirect out to /dev/nul in Cygwin or otherwise, anyway -- 
>although scripts generated by others need to be accomodated. But 
>manually, I just use 'nul'.

/dev/null in cygwin eventually translates to the Windows NUL device.

There is no reason to use 'NUL' rather than '/dev/null' since they are
both the same thing ... unless you enjoy using MS-DOS constructs rather
than UNIX ones.  That's sort of anti-Cygwin, though.

cgf

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list