Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Fri, 4 Jun 2004 12:32:46 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Ashok Vadekar cc: cygwin AT cygwin DOT com Subject: Re: Recent change in redirection handling? In-Reply-To: <20040604154513.GA153@certicom.com> Message-ID: References: <20040604154513 DOT GA153 AT certicom DOT com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.39 On Fri, 4 Jun 2004, Ashok Vadekar wrote: > I have a bash script that ran cleanly under 1.5.9x, that now exhibits some > disturbing behaviour under a recent upgrade. The gist of the problem is that > the execution of > compact /c file.exe >NUL > which used to run and produce no output (due to the redirect) now actually > puts the output into a file called NUL > So, I can deal with the fact that the script needs to either use > NUL: (which I did not test) or maybe more appropriately /dev/null (which > works), but I now have the NUL files polluting my disk that cannot be removed! > > Under a real unix shell, I've had occasion to drop down to a bourne shell to > delete filenames with wilrdcard characters that a (t)csh would have trouble > with, but I have not found a similar was to deal with this. Using > rm NUL > in bash does not work; > rem NUL > in a dos box doesn't work, and the windows explorer doesn't either. > > Any suggestions? Known problem. See and . In particular, the thread referenced in the first message should tell you how to remove the file. Incidentally, why do you redirect to NUL rather than to /dev/null? Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "I have since come to realize that being between your mentor and his route to the bathroom is a major career booster." -- Patrick Naughton -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/