X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Enrico Forestieri Subject: Re: Bash fails to run .bat file with spaces in pathname and argument Date: Sat, 14 Oct 2006 02:12:17 +0000 (UTC) Lines: 16 Message-ID: References: <452D5DF0 DOT 9070605 AT cs DOT berkeley DOT edu> <452D8FE7 DOT 9090705 AT byu DOT net> <452DABED DOT 5030409 AT cs DOT berkeley DOT edu> <5c8adab70610112003m34b68694n3a80a05a1187bce4 AT mail DOT gmail DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes 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 Sean Daley writes: > Read further down that thread and you'll also see that people discovered some > additional horrifying things about windows cmd. > > http://sourceware.org/ml/cygwin/2004-09/msg00277.html Referring to that old post, the following works: C:\>cmd /c ""C:\Documents and Settings\test.bat" "Hello, world."" "Hello, world." Yes, quoting is quite weird with cmd.exe. -- Enrico -- 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/