Re: Formatting command line arguments when starting a Cygwin process from a native process

2016-05-09 Thread Peter Rosin
Hi! On 2016-05-07 09:45, David Allsopp wrote: > Andrey Repin wrote: >> Greetings, David Allsopp! > > And greetings to you, too! > > > >>> I'm not using cmd, or any shell for that matter (that's actually the >>> point) - I am in a native Win32 process invoking a Cygwin process >>> directly usi

Re: Formatting command line arguments when starting a Cygwin process from a native process

2016-05-09 Thread Marco Atzeri
On 09/05/2016 11:43, Peter Rosin wrote: Hi! I'm not using cmd, or any shell for that matter (that's actually the point) - I am in a native Win32 process invoking a Cygwin process directly using the Windows API's CreateProcess call. As it happens, the program I have already has the arguments

[ANNOUNCEMENT] Updated: mc-4.8.17-1

2016-05-09 Thread Marco Atzeri
Version mc-4.8.17-1 of Midnight Commander has been uploaded for cygwin CHANGES This is a upstream bugfix release https://www.midnight-commander.org/wiki/NEWS-4.8.17 DESCRIPTION GNU Midnight Commander is a visual file manager. It's a feature rich full-screen text mode application that allows you

System shutdown messages

2016-05-09 Thread Ken Brown
A Cygwin emacs user has asked (http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23483) whether emacs can auto-save files when he shuts down Windows from the Start Menu. Is there a way for a Cygwin process to listen for Windows system shutdown messages? Ken -- Problem reports: http://cygwi

RE: Formatting command line arguments when starting a Cygwin process from a native process

2016-05-09 Thread Aaron Digulla
Am Samstag, 07. Mai 2016 09:45 CEST, "David Allsopp" schrieb: > > Then all you need is a rudimentary quoting. > > Yes, but the question still remains what that rudimentary quoting is - i.e. > I can see how to quote spaces which appear in elements of argv, but I cannot > see how to quote double

Re: cmp missing from base

2016-05-09 Thread Warren Young
On May 7, 2016, at 12:20 AM, Thomas Wolff wrote: > > Am 07.05.2016 um 03:41 schrieb Warren Young: >> On May 6, 2016, at 3:53 AM, Thomas Wolff wrote: >>> after a recent fresh installation of cygwin, I was surprised that `cmp` was >>> missing, which is part of the traditional Unix base commands.

RE: Formatting command line arguments when starting a Cygwin process from a native process

2016-05-09 Thread David Allsopp
Aaron Digulla wrote: > > Am Samstag, 07. Mai 2016 09:45 CEST, "David Allsopp" > schrieb: > > > > > Then all you need is a rudimentary quoting. > > > > Yes, but the question still remains what that rudimentary quoting is - > i.e. > > I can see how to quote spaces which appear in elements of argv

RE: Formatting command line arguments when starting a Cygwin process from a native process

2016-05-09 Thread David Allsopp
Hi! Peter Rosin wrote: > I think cygwin emulates posix shell style command line parsing when > invoked from a Win32 process (like you do). So, try single quotes: > > commandLine = "callee.exe \"@\"te\"\n\"st fo@o bar\" \"baz baz '*' > '\"\\'\"'"; > > I get this (w/o noglob): > > argc = 7 > argv

RE: Formatting command line arguments when starting a Cygwin process from a native process

2016-05-09 Thread David Allsopp
Marco Atzeri wrote: > > Ultimate overview of MS escape howto : > > https://blogs.msdn.microsoft.com/twistylittlepassagesallalike/2011/04/23/e > veryone-quotes-command-line-arguments-the-wrong-way/ This is a great article (which I'd not come across before), but this relates to Microsoft's mechani

Re: Formatting command line arguments when starting a Cygwin process from a native process

2016-05-09 Thread Marco Atzeri
On 09/05/2016 17:49, David Allsopp wrote: Marco Atzeri wrote: Ultimate overview of MS escape howto : https://blogs.msdn.microsoft.com/twistylittlepassagesallalike/2011/04/23/e veryone-quotes-command-line-arguments-the-wrong-way/ This is a great article (which I'd not come across before), but

RE: Formatting command line arguments when starting a Cygwin process from a native process

2016-05-09 Thread David Allsopp
Marco Atzeri wrote: > On 09/05/2016 17:49, David Allsopp wrote: > > Marco Atzeri wrote: > >> > >> Ultimate overview of MS escape howto : > >> > >> https://blogs.msdn.microsoft.com/twistylittlepassagesallalike/2011/04 > >> /23/e veryone-quotes-command-line-arguments-the-wrong-way/ > > > > This is a

Re: System shutdown messages

2016-05-09 Thread Jon Turney
On 09/05/2016 14:35, Ken Brown wrote: A Cygwin emacs user has asked (http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23483) whether emacs can auto-save files when he shuts down Windows from the Start Menu. Is there a way for a Cygwin process to listen for Windows system shutdown messages? This se

Re: System shutdown messages

2016-05-09 Thread Ken Brown
On 5/9/2016 1:20 PM, Jon Turney wrote: On 09/05/2016 14:35, Ken Brown wrote: A Cygwin emacs user has asked (http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23483) whether emacs can auto-save files when he shuts down Windows from the Start Menu. Is there a way for a Cygwin process to listen for Win

Re: cmp missing from base

2016-05-09 Thread Warren Young
On May 6, 2016, at 7:41 PM, Warren Young wrote: > > On May 6, 2016, at 3:53 AM, Thomas Wolff wrote: >> >> after a recent fresh installation of cygwin, I was surprised that `cmp` was >> missing, which is part of the traditional Unix base commands. >> I think the diffutils package should be part

Possible issue with newest version of git (v 2.8) under Cygwin

2016-05-09 Thread andrew stern
Recently I upgraded to version 2.8.0 of git on cygwin. I’m running under Windows 2008 R2. Before this upgrade we were able to share a NFS drive as a main repository. After the upgrade the permissions were changed so that only a single person had write access to the repository on a shared NFS dri

Re: cmp missing from base

2016-05-09 Thread Warren Young
On May 9, 2016, at 12:29 PM, Warren Young wrote: > > On May 6, 2016, at 7:41 PM, Warren Young wrote: >> >> On May 6, 2016, at 3:53 AM, Thomas Wolff wrote: >>> >>> after a recent fresh installation of cygwin, I was surprised that `cmp` was >>> missing, which is part of the traditional Unix ba

Re: Possible issue with newest version of git (v 2.8) under Cygwin

2016-05-09 Thread andrew stern
If I change my fstab back so that it does not include the noacl option on the line the merge is much faster: 15:51:22.288607 git.c:350 trace: built-in: git 'merge' 'FETCH_HEAD' Updating 154cf50..a0f35eb Fast-forward 15:55:18.347594 run-command.c:336 trace: run_command: 'gc' '--

Re: cmp missing from base

2016-05-09 Thread Eric Blake
On 05/09/2016 12:29 PM, Warren Young wrote: >>> I think the diffutils package should be part of the base installation. Based on just the start of the thread, I was already considering adding diffutils to Base the next time I package it... > 3. We can also exclude all libraries. Discussions of wh

Re: cmp missing from base

2016-05-09 Thread Warren Young
On May 9, 2016, at 2:57 PM, Eric Blake wrote: > > On 05/09/2016 12:29 PM, Warren Young wrote: >> RHEL’s coreutil depends on gmp, while Cygwin’s does not, but this does not >> tell us that Cygwin’s coreutils should be rebuilt to depend on gmp. > > Umm, the cygwin build of coreutils DOES depend o

timestamp 1462839105 iso-codes missing under release/

2016-05-09 Thread Fergus
The latest setup.ini refers to new updates under release/iso-codes but the files and the entire subdirectory including [orev] files is missing on at least 3 mirrors that I tried.  Fergus‎ Sent from my BlackBerry 10 smartphone.‎ -- Problem reports: http://cygwin.com/problems.html FAQ:

Re: timestamp 1462839105 iso-codes missing under release/

2016-05-09 Thread Achim Gratz
Fergus writes: > The latest setup.ini refers to new updates under release/iso-codes but > the files and the entire subdirectory including [orev] files is > missing on at least 3 mirrors that I tried.  They're in noarch/release now. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb