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 13:42:23 -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: <20040604171351.GA698@certicom.com> Message-ID: References: <20040604154513 DOT GA153 AT certicom DOT com> <20040604171351 DOT GA698 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: > On Fri, Jun 04, 2004 at 12:32:46PM -0400, Igor Pechtchanski wrote: > > Incidentally, why do you redirect to NUL rather than to /dev/null? > > I usually end up having trouble when I try to use native windows > excutables in bash scripts. Redmond and I don't seem to see eye-to-eye > on parameter passing etal. FWIW, there's no magic with parameter passing, and Windows has little to do with it. As long as you quote strings properly, and convert POSIX paths to Win32 ones, you shouldn't have a problem. > So I end up testing the use of the executables in a DOS box first. As a > result, I used NUL. When I put the functionality into the bash script, > I just neglected to use the (unix) cannonical method. In this > particular case, in addition to the compact call, I was trying to set up > environment variables through the use of REG, and was having trouble > with the quotes and slashes getting handled differently by bash and CMD. > Worse yet, the registry manipulation was going into a sprintf/system() > call so that a binary was calling REG, so it was somewhat obscured. FYI, should be helpful... 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/