Re: ($shell cd) result different if including cygwin/bin directory in path

2006-04-11 Thread Omar BELKHODJA
Thank you Dave, I understand now what is happening. I changed the name of the sh.exe to sh_.exe and now everything is working. I think that make searches first for the sh.exe file, and if it doesn't exist, it uses C:\WINDOWS\system32\cmd.exe 1) The SHELL variable is not set in my environment, but t

RE: ($shell cd) result different if including cygwin/bin directory in path

2006-04-11 Thread Igor Peshansky
On Tue, 11 Apr 2006, Dave Korn wrote: > On 11 April 2006 15:26, Omar BELKHODJA wrote: > > > Sorry Dave, but I don't understand which command you are talking about. > > Are talking about 'cd' ? I don't see any 'cd' command in the cygwin/bin > > directory. If there was a 'cd' comand in the cygwin/b

RE: ($shell cd) result different if including cygwin/bin directory in path

2006-04-11 Thread Dave Korn
On 11 April 2006 15:26, Omar BELKHODJA wrote: > Sorry Dave, but I don't understand which command you are talking about. > Are talking about 'cd' ? I don't see any 'cd' command in the cygwin/bin > directory. If there was a 'cd' comand in the cygwin/bin directory, when > I type 'cd' directly from t

Re: ($shell cd) result different if including cygwin/bin directory in path

2006-04-11 Thread Omar BELKHODJA
Sorry Dave, but I don't understand which command you are talking about. Are talking about 'cd' ? I don't see any 'cd' command in the cygwin/bin directory. If there was a 'cd' comand in the cygwin/bin directory, when I type 'cd' directly from the DOS command prompt, I should have the same empty str

RE: ($shell cd) result different if including cygwin/bin directory in path

2006-04-11 Thread Dave Korn
On 11 April 2006 13:27, Omar BELKHODJA wrote: > It is true, that this is a third-party tool(the gnu make), but it seems > that it is not really strange to the cygwin environment, as the fact of > adding the cygwin/bin directory changes the behaviour of this tool. No, it's your fault. Don't yo

RE: ($shell cd) result different if including cygwin/bin directory in path

2006-04-11 Thread Dave Korn
On 11 April 2006 10:45, Omar BELKHODJA wrote: > This gmake.exe if executing a makefile with > the command ($shell cd), returns the current directory from an > MS-DOS command prompt, but if I add the cygwin/bin directory to the path > the ($shell cd) result is an empty string WELL

Re: ($shell cd) result different if including cygwin/bin directory in path

2006-04-11 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Omar BELKHODJA on 4/11/2006 3:44 AM: > I want to use the unix commands from an MS-DOS command prompt (grep, > find...) and for that I have included the cygwin/bin directory in my > path. > This is OK for using grep, find... but this create