cygwin-1.7, stty min 0, and console/terminals

2014-02-10 Thread Roy
Hello list, I tried to build 8086tiny on cygwin-1.7.28.2, it builds successfully. Then I use runme script to startup 8086tiny as in *nix, which calls `stty min 0` so 8086tiny can read keyboard without waiting. But I found that cygwin-1.7 keeps returning previous char even if there is no inp

Re: File associations in Windows [was: Re: Invoking Cygwin vim from Windows Explorer]

2014-02-10 Thread Jarno Malmari
On 10 February 2014 04:47, Max Polk wrote: > The first problem is that Windows file associations have to be a single exe > with no arguments. When you run that file (double click in Explorer), > Windows passes the filename to that single .exe program. Not exactly true. There's just no good too

Re: Invoking Cygwin vim from Windows Explorer

2014-02-10 Thread carolus
On 2/10/2014 8:41 PM, Andrey Repin wrote: @carolus, navigate to your Cygwin installation /bin, locate mintty.exe, bring up it's properties and remove the "Requires admin powers" checkbox on Compatibility tab. Confirm your changes, and it should work fine from now on. Done, works OK now. This

Re: Invoking Cygwin vim from Windows Explorer

2014-02-10 Thread carolus
On 2/10/2014 8:34 PM, Andrey Repin wrote: Just C:\Programs\CygWin\bin\mintty.exe --exec /bin/vi.exe is enough. or in my case C:\cygwin\bin\mintty.exe --exec /bin/vim-nox.exe Thanks -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Do

Re: Launch a windows application from crontab

2014-02-10 Thread Andrey Repin
Greetings, Andrey Repin! >> What possibilities remain to me with a win7 system? The background for my >> problem is a windows application that sometimes crashes silently (it is >> still open but doesn't do what it should) and had to be restarted. >> A big amount of Voodoo sounds interesting ;-) bu

Re: Invoking Cygwin vim from Windows Explorer

2014-02-10 Thread Andrey Repin
Greetings, Lavrentiev, Anton (NIH/NLM/NCBI) [C]! >> an administrative password to run minty > That's new to me. My PC at work (despite being secured with tons and tons > of Gov't restrictive policies) does not require any additional permissions > to run a command incorporated in the shortcut fil

Re: Invoking Cygwin vim from Windows Explorer

2014-02-10 Thread Andrey Repin
Greetings, Lavrentiev, Anton (NIH/NLM/NCBI) [C]! > My suggestion was not an exact recipe, it was just a scheme. > Here the exact step-by-step procedure. I've checked it works on my Windows 7 > box. > From the Windows "Start" menu, in the Search box at the bottom > (formerly called "Run") enter

Re: Launch a windows application from crontab

2014-02-10 Thread Andrey Repin
Greetings, carl! > What possibilities remain to me with a win7 system? The background for my > problem is a windows application that sometimes crashes silently (it is > still open but doesn't do what it should) and had to be restarted. > A big amount of Voodoo sounds interesting ;-) but perhabs I

Re: get rid of getpwent? (Was: cygwin-1.7.28 getpwent header declaration changes ?)

2014-02-10 Thread Andrey Repin
Greetings, David Stacey! >> I don't have my "almost everything" Cygwin install here to run it >> against, so unless someone beats me to it, I won't be posting results >> for many hours at least. > Delighted to oblige. I ran your perl script on all executables and DLLs > in /bin. Results attache

Re: Newbie Alias and Profile questions

2014-02-10 Thread Mike Rushton
Well let me work at it tomorrow. I know how to do this on other unix systems, just that Cygwin is not acting as I am used too. I have done things like this on some versions of RHEL, UnixWare, Xenix, MKS Tookit. I guess I have to keep reading the Documentation and trying things. ( and no m

Re: Newbie Alias and Profile questions

2014-02-10 Thread Christopher Faylor
Can we have a moratorium on the term "newbie" please? Please just ask your questions. On Mon, Feb 10, 2014 at 08:15:28PM -0500, Mike Rushton wrote: >Can some one give me some hints about this ? > >I read the documentation and can't figure this out. > >I am trying to put an alias in a .bashrc > >a

Re: Newbie Alias and Profile questions

2014-02-10 Thread Larry Hall (Cygwin)
On 2/10/2014 8:15 PM, Mike Rushton wrote: Can some one give me some hints about this ? I read the documentation and can't figure this out. I am trying to put an alias in a .bashrc alias clear='printf "\033c"' But what .bashrc do I put this in ? in /ect/skel or the one my user directory. I

Newbie Alias and Profile questions

2014-02-10 Thread Mike Rushton
Can some one give me some hints about this ? I read the documentation and can't figure this out. I am trying to put an alias in a .bashrc alias clear='printf "\033c"' But what .bashrc do I put this in ? in /ect/skel or the one my user directory. I put this code in and it seems to get overw

Re: Maintainer for git?

2014-02-10 Thread David Conrad
On Wed, Jan 29, 2014 at 10:35 AM, Adam Dinwoodie wrote: > On Tue, Jan 28, 2014 at 12:11:02PM +0100, Corinna Vinschen wrote: >> as soon as we release the next Cygwin version 1.7.28, which is due very >> soon now. >> > I've just tested this -- the clone is [...] working just fine with > the 2014-01-2

Re: get rid of getpwent? (Was: cygwin-1.7.28 getpwent header declaration changes ?)

2014-02-10 Thread David Stacey
On 10/02/2014 19:49, Warren Young wrote: I don't have my "almost everything" Cygwin install here to run it against, so unless someone beats me to it, I won't be posting results for many hours at least. Delighted to oblige. I ran your perl script on all executables and DLLs in /bin. Results at

Re: snapshots dated 20140210 fail

2014-02-10 Thread Warren Young
is an import table, but the section containing it could not be found" (This after sending the objdump -x for both DLLs (1.7.28-1 and 20140210@221721) to separate output files and diffing them.) objdump does claim the snapshot is a 32-bit DLL, so it isn't a case of accidentally using the

Re: snapshots dated 20140210 fail

2014-02-10 Thread Denis Excoffier
On 2014-02-10 23:05, Denis Excoffier wrote: > Hello, > > I use XP SP3 with 32 bits and also Seven 32 bits. Today i could exercise 4 > new snapshots. > I can see another one, dated 22:17:21 UTC. Same problem as for the 3rd and 4th: windows complaint that this is not a windows image. Denis Exc

snapshots dated 20140210 fail

2014-02-10 Thread Denis Excoffier
Hello, I use XP SP3 with 32 bits and also Seven 32 bits. Today i could exercise 4 new snapshots. The first two had the same problem (tested on XP): it seems that every program that has to perform something in connection with user/id/passwd etc. produces a stackdump (id, tar etc.). The last tw

Re: get rid of getpwent? (Was: cygwin-1.7.28 getpwent header declaration changes ?)

2014-02-10 Thread Warren Young
On 2/10/2014 04:16, Peter Rosin wrote: On 2014-02-10 10:02, Warren Young wrote: there *has* to be a better way than strings(1) to extract an EXE's list of DLL imports. objdump -x /bin/foo.exe Thank you! -x turns on 6 other flags, the only one of which that really matters here is -p. The

Re: Invoking Cygwin vim from Windows Explorer

2014-02-10 Thread carolus
On 2/10/2014 11:41 AM, Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote: an administrative password to run minty That's new to me. My PC at work (despite being secured with tons and tons of Gov't restrictive policies) does not require any additional permissions to run a command incorporated in the s

RE: Invoking Cygwin vim from Windows Explorer

2014-02-10 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C]
> an administrative password to run minty That's new to me. My PC at work (despite being secured with tons and tons of Gov't restrictive policies) does not require any additional permissions to run a command incorporated in the shortcut file... Anton Lavrentiev Contractor NIH/NLM/NCBI -- Proble

Re: Invoking Cygwin vim from Windows Explorer

2014-02-10 Thread carolus
On 2/10/2014 10:14 AM, Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote: My suggestion was not an exact recipe, it was just a scheme. Here the exact step-by-step procedure. I've checked it works on my Windows 7 box. From the Windows "Start" menu, in the Search box at the bottom (formerly called "R

RE: Invoking Cygwin vim from Windows Explorer

2014-02-10 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C]
Oops, I copied it incompletely > cat < cat >vim.sh

RE: Invoking Cygwin vim from Windows Explorer

2014-02-10 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C]
My suggestion was not an exact recipe, it was just a scheme. Here the exact step-by-step procedure. I've checked it works on my Windows 7 box. From the Windows "Start" menu, in the Search box at the bottom (formerly called "Run") enter (substitute with whatever ID you are going by on that Wind

Re: cygwin-1.7.28 getpwent header declaration changes ?

2014-02-10 Thread Marco Atzeri
On 09/02/2014 21:09, Corinna Vinschen wrote: On Feb 9 20:50, Marco Atzeri wrote: probably I am missing something obvious, but should not /usr/include/sys/cdefs.h be included in some way in /usr/include/pwd.h to make working the #if __XSI_VISIBLE >= 500 struct passwd *getpw

Re: [ANNOUNCEMENT] Updated: Cygwin 1.7.28-2

2014-02-10 Thread Marco Atzeri
On 10/02/2014 14:16, Achim Gratz wrote: Luke Kendall cisra.canon.com.au> writes: The 64 bit Cygwin distribution now has $num_pk_64 packages, compared with $num_pk_32 in the 32 bit version. There are 3109 packages in x86 and 2833 in x86_64, for a total of 2491 common packages (present in bot

Re: [ANNOUNCEMENT] Updated: Cygwin 1.7.28-2

2014-02-10 Thread Achim Gratz
Luke Kendall cisra.canon.com.au> writes: > The 64 bit Cygwin distribution now has $num_pk_64 packages, compared > with $num_pk_32 in the 32 bit version. There are 3109 packages in x86 and 2833 in x86_64, for a total of 2491 common packages (present in both architectures) and 960 unique ones. Re

Re: get rid of getpwent? (Was: cygwin-1.7.28 getpwent header declaration changes ?)

2014-02-10 Thread Peter Rosin
On 2014-02-10 10:02, Warren Young wrote: > On Feb 9, 2014, at 9:37 AM, David Stacey wrote: > >> On 09/02/2014 15:45, Warren Young wrote: >>> Results: >>> >>> /bin/cppcheck.exe >> >> As far as I can tell, cppcheck doesn't actually call getpwent() at all; this >> is a false positive turned up by s

Re: spawnv() unlocks files in the calling program

2014-02-10 Thread Corinna Vinschen
On Feb 9 21:38, Corinna Vinschen wrote: > On Feb 9 15:06, Steven Bardwell wrote: > > > How do you test that? You're calling fcntl(F_SETLKW) exactly once at > > > the start of your test application, but never again later. We're > > > talking advisory file locking here, so, where's the next fcntl

Re: get rid of getpwent? (Was: cygwin-1.7.28 getpwent header declaration changes ?)

2014-02-10 Thread Warren Young
On Feb 9, 2014, at 9:37 AM, David Stacey wrote: > On 09/02/2014 15:45, Warren Young wrote: >> Results: >> >> /bin/cppcheck.exe > > As far as I can tell, cppcheck doesn't actually call getpwent() at all; this > is a false positive turned up by strings(1). Yeah, there *has* to be a better way t