[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mingw-users
Subject:    Re: [Mingw-users] MSYS-built shell script and cmd.exe shell
From:       Keith MARSHALL <keith.marshall () total ! com>
Date:       2006-09-12 10:50:25
Message-ID: OF968F9CA6.09FCA084-ON802571E7.0039052D-802571E7.003B8C48 () total ! com
[Download RAW message or body]

Earnie Boyd wrote, quoting me:
>>> From cmd.exe just do ``c:/msys/1.0/bin/sh foo.sh''.
>>
>> From cmd.exe, that would need to be `c:\msys\1.0\bin\sh foo.sh'.
>> While Windows itself has no problem recognising path names with
>> forward slashes, cmd.exe is just too dumb -- it parses forward
>> slash as a delimiter, expecting it to be followed by an option;
>> Earnie's example would try to invoke `c:' as a command, with
>> options `/msys', `/1.0', etc., which of course would fail.
>
> Are you really sure about this?

No.  Seems like it behaves differently if the command name, ignoring
any initial drive specifier, begins with a forward slash.

D:\> ver

Microsoft Windows 2000 [Version 5.00.2195]

D:\> type foo.sh
#!/bin/sh
echo Hello, world.

D:\> /msys/1.0/bin/sh foo.sh
AllocationBase 0x0, BaseAddress 0x715B0000, RegionSize 0x130000,
 State 0x10000
D:\msys\1.0\bin\sh.exe: *** Couldn't reserve space for cygwin's heap,
 Win32 error 6

but...

D:\> msys/1.0/bin/sh foo.sh
'msys' is not recognized as an internal or external command,
operable program or batch file.

Ah, well.  Just another of cmd.exe's asininely inconsistent foibles,
that makes it such a joke to work with. :-)

The error I'm getting from sh.exe is a different issue, which I do
not see when I start it via msys.bat.  I used to be able to do this
sort of thing successfully; I guess some recent Woe2K patches from
Corporate IT has changed something, which interacts badly with this
MSYS-1.0.10 sh.exe.

Regards,
Keith.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
MinGW-users mailing list
MinGW-users@lists.sourceforge.net

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic