delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-6.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4C93A3C4.80508@redhat.com> |
Date: | Fri, 17 Sep 2010 11:22:12 -0600 |
From: | Eric Blake <eblake AT redhat DOT com> |
User-Agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100907 Fedora/3.1.3-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.3 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: where was mention of what creates NUL files? |
References: | <4C93A171 DOT 4040402 AT fgm DOT com> |
In-Reply-To: | <4C93A171.4040402@fgm.com> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
On 09/17/2010 11:12 AM, Daniel Barclay wrote: > Does anyone recall a mention of what in CygWin (or possibly Emacs) creates > files with a simple name of "NUL"? Windows automagically maps the file named "NUL", in any directory, to the equivalent of Unix' /dev/null. Cygwin doesn't create it, but all the same, portable programs should never name a file that case-insensitively matches 'nul', 'aux', or a host of other windows-magic names: http://www.gnu.org/software/autoconf/manual/autoconf.html#File-System-Conventions Meanwhile, cygwin 1.7 has added some magic to use native NT calls to work around these limitations, so that you can have a file that appears to be named "NUL" from within cygwin, but which is really exploiting some 16-bit values outside of Unicode. But various windows programs that use windows API (rather than lower-level NT API), including your file Explorer, have a hard time figuring out what cygwin did. -- Eric Blake eblake AT redhat DOT com +1-801-349-2682 Libvirt virtualization library http://libvirt.org -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |