This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: dev/null


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]