[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: svn commit: rev 7963 - trunk/subversion/libsvn_wc

From: Eric V. Smith <eric_at_windsor.com>
Date: 2003-12-09 21:47:48 CET

> Just so you know:

<output showing \dev\nul gives an error if \dev doesn't exist deleted>

Yes, but:

C:\tmp>echo a > nul

C:\tmp>dir
 Volume in drive C has no label.
 Volume Serial Number is 5C11-6F80

 Directory of C:\tmp

12/01/2003 03:18p <DIR> .
12/01/2003 03:18p <DIR> ..
12/01/2003 03:18p <DIR> foo
               0 File(s) 0 bytes
               3 Dir(s) 13,713,639,936 bytes free

C:\tmp>echo a > foo\nul

C:\tmp>dir foo
 Volume in drive C has no label.
 Volume Serial Number is 5C11-6F80

 Directory of C:\tmp\foo

12/01/2003 03:18p <DIR> .
12/01/2003 03:18p <DIR> ..
               0 File(s) 0 bytes
               2 Dir(s) 13,713,639,936 bytes free

C:\tmp>

That is, you can put any existing path in front of nul. The same thing
"works" with other special files like com1 and lpt1. That's a source of
many a bug in DOS programs, and why you have to be extra special careful
when using filenames that a user provides. It's hard to tell when the
user types c:\tmp\com1 that it really refers to a COM port, not a real
file.

Just trying to educate.

Eric.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Dec 9 21:54:20 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.