Re: cmd.exe from Cygwin

2009-01-08 Thread Jeenu V
On Thu, Jan 8, 2009 at 6:32 AM, Jeenu V jee...@gmail.com wrote: On Wed, Jan 7, 2009 at 9:22 PM, Christopher Faylor cgf-use-the-mailinglist-ple...@cygwin.com wrote: screen uses ptys. ptys are equivalent to CYGWIN=tty. We really don't guarantee that pure Windows applications will work with

Re: cmd.exe from Cygwin

2009-01-08 Thread Corinna Vinschen
On Jan 8 16:03, Jeenu V wrote: On Thu, Jan 8, 2009 at 6:32 AM, Jeenu V jee...@gmail.com wrote: On Wed, Jan 7, 2009 at 9:22 PM, Christopher Faylor cgf-use-the-mailinglist-ple...@cygwin.com wrote: screen uses ptys. ptys are equivalent to CYGWIN=tty. We really don't guarantee that pure

Re: cmd.exe from Cygwin

2009-01-08 Thread Jeenu V
On Thu, Jan 8, 2009 at 4:50 PM, Corinna Vinschen corinna-cyg...@cygwin.com wrote: It's a constraint of the native Windows applications. There's no PTY concept in Windows so Cygwin uses pipes to emulate the behaviour. Cygwin applications know when they are running in a pty, native apps don't

Re: cmd.exe from Cygwin

2009-01-08 Thread Christopher Faylor
On Thu, Jan 08, 2009 at 04:03:03PM +0530, Jeenu V wrote: On Thu, Jan 8, 2009 at 6:32 AM, Jeenu V jee...@gmail.com wrote: On Wed, Jan 7, 2009 at 9:22 PM, Christopher Faylor cgf-use-the-mailinglist-ple...@cygwin.com wrote: screen uses ptys. ptys are equivalent to CYGWIN=tty. We really don't

Re: cmd.exe from Cygwin

2009-01-08 Thread Jeenu V
On Thu, Jan 8, 2009 at 9:36 PM, Christopher Faylor cgf-use-the-mailinglist-ple...@cygwin.com wrote: Do you think screen is the only thing that uses ptys in the whole distribution? Nope; I've no idea. -- :J -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports:

Re: cmd.exe from Cygwin

2009-01-08 Thread Larry Hall (Cygwin)
Jeenu V wrote: On Thu, Jan 8, 2009 at 9:36 PM, Christopher Faylor cgf-use-the-mailinglist-please AT cygwin DOT com wrote: http://cygwin.com/acronyms/#PCYMTNQREAIYR. It's not good to feed the spammers. Thanks. Do you think screen is the

Re: cmd.exe from Cygwin

2009-01-07 Thread Jeenu V
On Wed, Jan 7, 2009 at 11:41 AM, Larry Hall (Cygwin) reply-to-list-only...@cygwin.com wrote: Jeenu V wrote: With cgf's help and a good look at your cygcheck output, I believe I was able to reproduce something like your problem. If I'm right, then you want to remove 'tty' from your CYGWIN

Re: cmd.exe from Cygwin

2009-01-07 Thread Christopher Faylor
On Wed, Jan 07, 2009 at 01:49:46PM +0530, Jeenu V wrote: On Wed, Jan 7, 2009 at 11:41 AM, Larry Hall (Cygwin) reply-to-list-only...@cygwin.com wrote: Jeenu V wrote: With cgf's help and a good look at your cygcheck output, I believe I was able to reproduce something like your problem. If I'm

Re: cmd.exe from Cygwin

2009-01-07 Thread Jeenu V
On Wed, Jan 7, 2009 at 9:22 PM, Christopher Faylor cgf-use-the-mailinglist-ple...@cygwin.com wrote: screen uses ptys. ptys are equivalent to CYGWIN=tty. We really don't guarantee that pure Windows applications will work with ptys. Hm... looks like I've to live without cmd.exe from screen.

Re: cmd.exe from Cygwin

2009-01-06 Thread Jeenu V
On Tue, Jan 6, 2009 at 10:43 AM, Jeenu V jee...@gmail.com wrote: [...] I checked with one of my colleagues who has Cygwin installed, but he doesn't seem to have this problem. I feel like going with a fresh installation. I did a fresh, quick and bare-minimum installation (to a different

Re: cmd.exe from Cygwin

2009-01-06 Thread Larry Hall (Cygwin)
Jeenu V wrote: On Tue, Jan 6, 2009 at 10:43 AM, Jeenu V wrote: [...] I checked with one of my colleagues who has Cygwin installed, but he doesn't seem to have this problem. I feel like going with a fresh installation. I did a fresh, quick and bare-minimum installation (to a different

Re: cmd.exe from Cygwin

2009-01-06 Thread Larry Hall (Cygwin)
Larry Hall (Cygwin) wrote: Jeenu V wrote: On Tue, Jan 6, 2009 at 10:43 AM, Jeenu V wrote: [...] I checked with one of my colleagues who has Cygwin installed, but he doesn't seem to have this problem. I feel like going with a fresh installation. I did a fresh, quick and bare-minimum

Re: cmd.exe from Cygwin

2009-01-06 Thread Jeenu V
On Tue, Jan 6, 2009 at 11:23 PM, Larry Hall (Cygwin) reply-to-list-only...@cygwin.com wrote: Larry Hall (Cygwin) wrote: I know you've looked at the environment differences on your machine between a plain cmd and one under bash. How about comparing yours under bash with your colleague's?

Re: cmd.exe from Cygwin

2009-01-06 Thread Larry Hall (Cygwin)
Jeenu V wrote: On Tue, Jan 6, 2009 at 11:23 PM, Larry Hall (Cygwin) reply-to-list-only...@cygwin.com wrote: Larry Hall (Cygwin) wrote: I know you've looked at the environment differences on your machine between a plain cmd and one under bash. How about comparing yours under bash with your

Re: cmd.exe from Cygwin

2009-01-05 Thread Larry Hall (Cygwin)
Jeenu V wrote: 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

Re: cmd.exe from Cygwin

2009-01-05 Thread Jeenu V
On Mon, Jan 5, 2009 at 9:53 PM, Larry Hall (Cygwin) reply-to-list-only...@cygwin.com wrote: The Cygwin paths are added in '/etc/profile'. Obviously, you can remove them though that will make your configuration non-standard and unsupported. Essentially, this would make Cygwin tools

Re: cmd.exe from Cygwin

2009-01-05 Thread Larry Hall (Cygwin)
Jeenu V wrote: On Mon, Jan 5, 2009 at 9:53 PM, Larry Hall (Cygwin) reply-to-list-only...@cygwin.com wrote: The Cygwin paths are added in '/etc/profile'. Obviously, you can remove them though that will make your configuration non-standard and unsupported. Essentially, this would make Cygwin

Re: cmd.exe from Cygwin

2009-01-05 Thread Jeenu V
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

Re: cmd.exe from Cygwin

2009-01-05 Thread Chris Taylor
Larry Hall (Cygwin) wrote: Jeenu V wrote: On Mon, Jan 5, 2009 at 9:53 PM, Larry Hall (Cygwin) reply-to-list-only...@cygwin.com wrote: The Cygwin paths are added in '/etc/profile'. Obviously, you can remove them though that will make your configuration non-standard and unsupported.

Re: cmd.exe from Cygwin

2009-01-05 Thread Jeenu V
Maybe the best thing to do would be to edit the .bat/.cmd file so that the first thing it does is redefines PATH as it is in a normal cmd window - ie w/o cygwin running. That would result in the environment being clean for cygwin normally, and mean your symbian stuff wouldn't end up crapping

Re: cmd.exe from Cygwin

2009-01-05 Thread Larry Hall (Cygwin)
On 01/05/2009, Jeenu V wrote: I did not have a chance to, no. Is there something there that you believe significantly changes the context of your original question? Well, I initially thought these two problems were related. But now that one appear to be solved, and and other remains, I

Re: cmd.exe from Cygwin

2009-01-05 Thread Jeenu V
On Tue, Jan 6, 2009 at 8:36 AM, Larry Hall (Cygwin) reply-to-list-only...@cygwin.com wrote: You mean the part about the text overwrtiting itself? Your 'TERM' environment variable is set to 'screen'. Make sure that it's set to 'cygwin' and you'll see less trouble. ;-) Ehm... that was because

Re: cmd.exe from Cygwin

2009-01-05 Thread Larry Hall (Cygwin)
Jeenu V wrote: On Tue, Jan 6, 2009 at 8:36 AM, Larry Hall (Cygwin) wrote: You mean the part about the text overwrtiting itself? Your 'TERM' environment variable is set to 'screen'. Make sure that it's set to 'cygwin' and you'll see less trouble. ;-) Ehm... that was because I was using

Re: cmd.exe from Cygwin

2009-01-05 Thread Jeenu V
On Tue, Jan 6, 2009 at 9:37 AM, Larry Hall (Cygwin) reply-to-list-only...@cygwin.com wrote: I can't reproduce this. Do you have that problem before you invoke 'cmd'? Sad :(. I don't have any problems before invoking cmd.exe; bash just works fine. Would you suggest a fresh install of Cygwin? I

Re: cmd.exe from Cygwin

2009-01-05 Thread Larry Hall (Cygwin)
Jeenu V wrote: On Tue, Jan 6, 2009 at 9:37 AM, Larry Hall (Cygwin) reply-to-list-only-lh AT cygwin SQUAT com wrote: ^^ http://cygwin.com/acronyms/#PCYMTNQREAIYR. Thanks. I can't reproduce this. Do you have that problem before you invoke 'cmd'? Sad

Re: cmd.exe from Cygwin

2009-01-05 Thread Jeenu V
On Tue, Jan 6, 2009 at 10:00 AM, Larry Hall (Cygwin) reply-to-list-only...@cygwin.com wrote: And I assume that you don't have this problem if you just invoke 'cmd.exe' from Windows and try the same thing and further that it does reproduce if you then invoke 'bash' from that command prompt and

Re: cmd.exe from Cygwin

2009-01-05 Thread Larry Hall (Cygwin)
Jeenu V wrote: On Tue, Jan 6, 2009 at 10:00 AM, Larry Hall (Cygwin) reply-to-list-only...@cygwin.com wrote: And I assume that you don't have this problem if you just invoke 'cmd.exe' from Windows and try the same thing and further that it does reproduce if you then invoke 'bash' from that

Re: cmd.exe from Cygwin

2009-01-05 Thread Jeenu V
On Tue, Jan 6, 2009 at 10:51 AM, Larry Hall (Cygwin) reply-to-list-only...@cygwin.com wrote: OK, sounds like an environment problem then. You could probably spot the issue by comparing the environment you get in bash with the one you get in cmd.exe. I did that already and that was how I came

Re: cmd.exe from Cygwin

2009-01-05 Thread Larry Hall (Cygwin)
Jeenu V wrote: On Tue, Jan 6, 2009 at 10:51 AM, Larry Hall (Cygwin) reply-to-list-only...@cygwin.com wrote: OK, sounds like an environment problem then. You could probably spot the issue by comparing the environment you get in bash with the one you get in cmd.exe. I did that already and that

Re: cmd.exe from Cygwin

2009-01-03 Thread Andrew DeFaria
Jeenu V wrote: N:\src\CEDAR\GENERIC\base\bsp\hwip_arm\rvemuboard\ct1136\testcmd /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

cmd.exe from Cygwin

2009-01-02 Thread Jeenu V
Hi, I've to run some windows commands repeatedly. Since I'm familiar and comfortable with BASH, I thought I would perform the 'intelligent' decisions using BASH scripts and run rest using cmd.exe invoked from Cygwin bash shell. But this is the problem I face: The program I intend to run with

Re: cmd.exe from Cygwin

2009-01-02 Thread Lee
On 1/2/09, Jeenu V jee...@gmail.com wrote: Hi, I've to run some windows commands repeatedly. Since I'm familiar and comfortable with BASH, I thought I would perform the 'intelligent' decisions using BASH scripts and run rest using cmd.exe invoked from Cygwin bash shell. But this is the

Re: cmd.exe from Cygwin

2009-01-02 Thread Jeenu V
Thanks for the reply. The backslash is an escape character, so you need to get it treated as a character somehow - escaping (\\) or inside quotes works for me: I'm aware of this. N:\src\CEDAR\GENERIC\base\bsp\hwip_arm\rvemuboard\ct1136\testcmd /c bldmake bldfiles ARMV6 sh:

Re: cmd.exe from Cygwin

2009-01-02 Thread Dave Korn
Jeenu V wrote: The program I intend to run with cmd.exe (with /c switch) fails to run as it couldn't access some Windows paths. Please take a look like this command, for example: N:\src\CEDAR\GENERIC\base\bsp\hwip_arm\rvemuboard\ct1136\testcmd /c bldmake bldfiles ARMV6 sh: