From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25990 invoked by alias); 20 Sep 2010 09:40:15 -0000 Received: (qmail 25980 invoked by uid 22791); 20 Sep 2010 09:40:13 -0000 X-SWARE-Spam-Status: No, hits=0.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_SORBS_WEB,RCVD_NUMERIC_HELO,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from lo.gmane.org (HELO lo.gmane.org) (80.91.229.12) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 20 Sep 2010 09:40:07 +0000 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Oxcqy-0001sk-Fb for cygwin@cygwin.com; Mon, 20 Sep 2010 11:40:04 +0200 Received: from 91.193.68.214 ([91.193.68.214]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 20 Sep 2010 11:40:04 +0200 Received: from gavenko by 91.193.68.214 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 20 Sep 2010 11:40:04 +0200 To: cygwin@cygwin.com From: Oleksandr Gavenko Subject: Re: where was mention of what creates NUL files? Date: Mon, 20 Sep 2010 10:22:00 -0000 Message-ID: References: <4C93A171.4040402@fgm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 In-Reply-To: <4C93A171.4040402@fgm.com> X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2010-09/txt/msg00646.txt.bz2 On 17.09.2010 20:12, Daniel Barclay wrote: > Does anyone recall a mention of what in CygWin (or possibly Emacs) creates > files with a simple name of "NUL"? > I also use native Emacs and after some operation I got file with name NUL. I have a lot NUL files in many dirs, which can be removed only from Cygwin: $ rm NUL I don't fully debug but think this come from 'null-device' variable (which has 'NUL' value by default). To friend native GNU Emacs with Cygwin (and stop creating NUL) I use: (when (eq system-type 'windows-nt) (setq shell-file-name "bash") ;; Workaround for Cygwin shell, when set 'CYGWIN=noglob'. By default 'shell-quote-argument' ;; quoted by double '\' chars this cause failure. (defun shell-quote-argument (argument) (concat "'" argument "'") ) ;; Workaround for Cygwin when 'shell-file-name' is 'bash'. (setq null-device "/dev/null") ) -- Happy hacking! -- 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