Re: very odd behavior of Cygwin python from CMD

2007-03-05 Thread Larry Hall (Cygwin)
David Abrahams wrote: "Larry Hall (Cygwin)" cygwin com> writes: . We don't want to feed the spammers. On 03/03/2007, David Abrahams wrote: Brian Dessent dessent net> writes: > > and if

Re: very odd behavior of Cygwin python from CMD

2007-03-05 Thread David Abrahams
"Larry Hall (Cygwin)" <[EMAIL PROTECTED]> writes: > On 03/03/2007, David Abrahams wrote: >> Brian Dessent dessent net> writes: > > and if so, >> launch it as "sh.exe -c python", using sh.exe in the same >> > > dir as the shortcut. This will invoke python through the shell, >> > > which will fol

Re: very odd behavior of Cygwin python from CMD

2007-03-04 Thread Larry Hall (Cygwin)
On 03/03/2007, David Abrahams wrote: Brian Dessent dessent net> writes: > > and if so, launch it as "sh.exe -c python", using sh.exe in the same > > dir as the shortcut. This will invoke python through the shell, > > which will follow symlinks. Ja; except that that begs the question -- sh.ex

Re: very odd behavior of Cygwin python from CMD

2007-03-03 Thread David Abrahams
Brian Dessent <[EMAIL PROTECTED]> writes: > David Abrahams wrote: > >> Now, I am writing a program that must use CMD to probe for python in >> the PATH and check its version. If I do the naive thing and just try >> to invoke "python," and there's a Cygwin installation, my program will >> crash or

Re: very odd behavior of Cygwin python from CMD

2007-03-03 Thread Brian Dessent
David Abrahams wrote: > Now, I am writing a program that must use CMD to probe for python in > the PATH and check its version. If I do the naive thing and just try > to invoke "python," and there's a Cygwin installation, my program will > crash or freeze. So the question is, what do I do instead

Re: very odd behavior of Cygwin python from CMD

2007-03-03 Thread David Abrahams
David Abrahams <[EMAIL PROTECTED]> writes: > With c:\cygwin\bin in my PATH, if I open a CMD shell and invoke > > python > > I get some garbage characters on my console, and then it freezes. If > I instead do > > set USER=dave && python > > there are no garbage characters and no freeze, but a