X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 	tests=AWL,BARRACUDA_BRBL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Andrew DeFaria <Andrew@DeFaria.com>
Subject:  Re: cmd.exe from Cygwin
Date:  Sat, 03 Jan 2009 13:24:34 -0700
Lines: 32
Message-ID: <gjohi3$fbt$1@ger.gmane.org>
References:  <5195c8760901020359y51dbe19cw2803e36afe028c1d@mail.gmail.com> 	 <dd5f2deb0901020623o26f5dc9crf9eec2b084f2f4db@mail.gmail.com> <5195c8760901020642g7af8c830w237ee298e645b91f@mail.gmail.com>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding:  7bit
User-Agent: Thunderbird 2.0.0.19 (Windows/20081209)
In-Reply-To: <5195c8760901020642g7af8c830w237ee298e645b91f@mail.gmail.com>
X-Stationery: 0.4.8.12
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Jeenu V wrote:
>>> N:\src\CEDAR\GENERIC\base\bsp\hwip_arm\rvemuboard\ct1136\test>cmd /c
>>> bldmake bldfiles ARMV6
>>> sh: E:SymbianM04765_Symbian_OS_v9.5binTechViewepoc32toolsbldmake.bat:
>>> command not found
> If you see above example, all I run is a command 'bldmake' which 
> neither contain back-slash nor white-space. So there's no need to 
> quote the file name here. What 'bldmake' really is--whether .bat, .com 
> or .exe--it's for cmd.exe to find out, of course using %PATH%. In my 
> case, going by the output, it did locate a .bat file with the name 
> 'bldmake'. However, I suspect, something went wrong in the path 
> translation. But the 'sh: ' in the error output rings in my head.
Nobody here knows what the contents of bldmake is. As David pointed out 
a simply execution of cmd /c works fine. So the question is what is 
bldmake. It seems to be attempting to re-execute itself down some path 
on the E drive and as David also pointed out, probably trips up on 
Cygwin in the path somewhere. Take "bldmake" apart and put some echo 
statements in there to isolate where the problem really is.
> Talking about black-slashes: assuming it's a .bat file, as long as the 
> content is interpreted by cmd.exe, the back-slashes inside the script 
> shouldn't make a difference.
For all we know bldmake could be bldmake.bat which contains a line such as:

sh E:\Symbian\M04765_Symbain_OS_V9.5\bin\Tech\Viewepoc32\tools\bldmake.bat

Intending to use Symbian's version of "sh" which can handle backslashes 
but due to how your PATH is setup it's using Cygwin's version of "sh" 
which doesn't like the backslashes. I'm not saying that's exactly what's 
going on, I'm saying that we don't know given your description so far.
-- 
Andrew DeFaria <http://defaria.com>
He's not dead, he's electroencephalographically challenged.


--
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/

