From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19634 invoked by alias); 23 Aug 2002 02:51:18 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 19627 invoked from network); 23 Aug 2002 02:51:17 -0000 Received: from unknown (HELO redhat.com) (66.30.22.225) by sources.redhat.com with SMTP; 23 Aug 2002 02:51:17 -0000 Received: by redhat.com (Postfix, from userid 201) id 5D1091B884; Thu, 22 Aug 2002 22:51:14 -0400 (EDT) Date: Thu, 22 Aug 2002 23:42:00 -0000 From: Christopher Faylor To: cygwin@cygwin.com Cc: radc4@cox-internet.com Subject: Re: Problems with GNU make.exe on win98 (reformatted) Message-ID: <20020823025114.GF13250@redhat.com> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com, radc4@cox-internet.com References: <20020822183340.SKQW13865.fe1@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020822183340.SKQW13865.fe1@localhost> User-Agent: Mutt/1.3.23.1i X-SW-Source: 2002-08/txt/msg01318.txt.bz2 On Thu, Aug 22, 2002 at 01:33:40PM -0500, radc4@cox-internet.com wrote: >Hi, > >Heres the environment: >Win 98, cygwin-b20, make 3.75, DOS shell You should definitely update your cygwin version and make sure that you select the "Devel" part of the install so that you can include a new version of make (and gcc, probably). >Whenever I try to run make in a DOS shell, I get several >"Bad command or file name" errors. I discovered that I was >getting this error only for commands that are also part of >the standard DOS (command.com) library. This does not appear >to be a path problem since all non-DOS commands work fine. >Also, I am able to run the same DOS command outside of make. > >Scenario: >If I place a "mkdir xxx" in the the makefile and run make, >I get the mentioned error. However, I can run that same >command at the DOS prompt, and it works fine. If I go to the >cygwin bin directory, rename mkdir.exe to mkdir_test.exe, >then adjust the makefile to contain "mkdir_test xxx", >everything will work. "mkdir" is a cygwin command (.exe file) and a "DOS" built-in command. It sounds like you don't have the mkdir program in your PATH which would indicate that you don't have the cygwin "/bin" directory in your path. Or, maybe that's not how B20 did things. I don't remember anymore. It's almost four years old. >is it possible that make.exe is not looking outside the >DOS command shell for commands that are part of the standard >DOS library? But, it works for all other commands that are >in the PATH? >I have tried setting my PATH so that the cygwin/bin >directory is first, this does not help. Is there a "mkdir.exe" in the cygwin/bin directory? If not, that's your problem. You shouldn't be trying to run "DOS" commands if you can help it. However, if you really have no choice but to do so, then something like: foo: bar command /c mkdir foo *may* work. I don't recall if there are issues with running the command shell from cygwin B20. I would REALLY recommend updating to a later version. Especially if you want to get support here. B20 is *old*. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/