Re: Proposal for new cygwin.bat which is independent from install directory

2016-08-30 Thread Christian Franke
Corinna Vinschen wrote: On Aug 26 18:23, Christian Franke wrote: Traditionally setup.exe creates the /cygwin.bat file as follows if C:\cygwin is the install directory: - @echo off C: chdir C:\cygwin\bin bash --login -i - The following should work since WinXP regardless of install dir

[ANNOUNCEMENT] Updated: mksh-53a-1

2016-08-30 Thread Chris Sutcliffe
Version 53a-1 of "mksh" has been uploaded. MirBSD Korn Shell, an actively developed free implementation of the Korn Shell programming language and a successor to the Public Domain Korn Shell. ChangeLog: [lintian] Fix spelling [tg] Unbreak multi-line command history broken by history flush [tg] Fi

Re: Windows Subsystem For Linux

2016-08-30 Thread Erik Soderquist
On Tue, Aug 30, 2016 at 4:45 PM, Andrey Repin wrote: > Now try to pipe something from a native application to your UFW build, and > then the results from it to something else native. > I'm eagerly awaiting reports of your success. Done it already, using netcat and a few localhost ports, using ssh,

Re: Script broken after updating bash to 4.3.46-7?

2016-08-30 Thread cyg Simple
On 8/30/2016 1:38 PM, Eric Blake wrote: > On 08/30/2016 12:04 PM, cyg Simple wrote: >> On 8/29/2016 2:30 PM, Eric Blake wrote: >>> >>> Simplest fix: >>> >>> read ... < <(mysql ... | dos2unix) >>> >> >> This will break when the data returned by mysql is supposed to contain \r. >> >>> There. Now you

Re: postgresql: missing catalog/genbki.h server header

2016-08-30 Thread Marco Atzeri
On 26/08/2016 11:57, Marco Atzeri wrote: On 25/08/2016 23:15, Yaakov Selkowitz wrote: Marco, Just ran into the following on both arches: In file included from qt-x11-free-3.3.8b/src/sql/drivers/psql/qsql_psql.cpp:61:0: /usr/include/postgresql/server/catalog/pg_type.h:22:28: fatal error: catalo

Re: Proposal for new cygwin.bat which is independent from install directory

2016-08-30 Thread Andrey Repin
Greetings, cyg Simple! >>> On 8/27/2016 1:44 PM, Andrey Repin wrote: Greetings, Christian Franke! > Andrey Repin wrote: >>> Hmm... therefore it is also better to change the last line to: >>> .\bash --login -i >> "%~dp0bin\bash.exe" --login -i > Changing the d

Re: Windows Subsystem For Linux

2016-08-30 Thread Andrey Repin
Greetings, lloyd.w...@yahoo.co.uk! > A viewpoint on this whole Windows Ubuntu Frankenstein hybrid vs Cygwin thing: > In comparison with the difficulties trying to build Geomview under 64-bit > Cygwin, > then discovering the piping issues that prevent it working with modules, using > the Windows

Re: openSsh

2016-08-30 Thread Erik Soderquist
On Tue, Aug 30, 2016 at 2:32 PM, Massimo Balestra wrote: > Forget it > > I copied the sshd_config from /etc/defaults/etc/sshd_config to /etc and now > it works again as it should. > > Now I need to figure out what was the parameter that broke it I look forward to those results too. Also, please d

Re: openSsh

2016-08-30 Thread Massimo Balestra
Forget it I copied the sshd_config from /etc/defaults/etc/sshd_config to /etc and now it works again as it should. Now I need to figure out what was the parameter that broke it Thank you On 8/30/2016 10:44 AM, Massimo Balestra wrote: Hi, I have installed several years ago my cygwin openss

Re: bash: igncr shell option breaks my PS1 prompt

2016-08-30 Thread Houder
On 2016-08-30 15:40, Eric Blake wrote: On 08/30/2016 02:49 AM, Houder wrote: ... uhm ... what about the explanation in the help? -o option-name Set the variable corresponding to option-name: ... igncron cygwin, ignore \r in line endings

openSsh

2016-08-30 Thread Massimo Balestra
Hi, I have installed several years ago my cygwin openssh server (sshd) and it worked very well for a long time. I use to connect to it in three ways: 1) from putty to open an interactive shell 2) from another cygwin on another PC using scp to copy files 3) (occasionally) from the cygwin on the o

Re: Script broken after updating bash to 4.3.46-7?

2016-08-30 Thread Eric Blake
On 08/30/2016 12:04 PM, cyg Simple wrote: > On 8/29/2016 2:30 PM, Eric Blake wrote: >> >> Simplest fix: >> >> read ... < <(mysql ... | dos2unix) >> > > This will break when the data returned by mysql is supposed to contain \r. > >> There. Now you aren't feeding \r to read in the first place. >> >

Re: Script broken after updating bash to 4.3.46-7?

2016-08-30 Thread cyg Simple
On 8/29/2016 2:30 PM, Eric Blake wrote: > > Simplest fix: > > read ... < <(mysql ... | dos2unix) > This will break when the data returned by mysql is supposed to contain \r. > There. Now you aren't feeding \r to read in the first place. > But you might want to feed \r to read. It isn't a fi

Re: Proposal for new cygwin.bat which is independent from install directory

2016-08-30 Thread cyg Simple
On 8/29/2016 9:58 AM, Andrey Repin wrote: > Greetings, cyg Simple! > > > >> On 8/27/2016 1:44 PM, Andrey Repin wrote: >>> Greetings, Christian Franke! >>> Andrey Repin wrote: >> Hmm... therefore it is also better to change the last line to: >> .\bash --login -i > "%~dp0bin\b

Re: Windows Subsystem For Linux

2016-08-30 Thread Marco Atzeri
On 30/08/2016 09:44, lloyd.w...@yahoo.co.uk wrote: A viewpoint on this whole Windows Ubuntu Frankenstein hybrid vs Cygwin thing: In comparison with the difficulties trying to build Geomview under 64-bit Cygwin, then discovering the piping issues that prevent it working with modules, using the W

RE: bash: igncr shell option breaks my PS1 prompt

2016-08-30 Thread Houder
On 2016-08-30 15:34, Nellis, Kenneth wrote: [snip] But, get this: $ PS1='$(date)\n\$ ' Tue Aug 30 09:30:37 EDT 2016 $ set -o igncr -bash: command substitution: line 1: syntax error near unexpected token `)' -bash: command substitution: line 1: `date)' $ PS1='`date`\n\$ ' Tue Aug 30 09:31:01

Re: bash: igncr shell option breaks my PS1 prompt

2016-08-30 Thread Eric Blake
On 08/30/2016 02:49 AM, Houder wrote: > ... uhm ... what about the explanation in the help? > > -o option-name > Set the variable corresponding to option-name: > ... > igncron cygwin, ignore \r in line endings >^^^

RE: bash: igncr shell option breaks my PS1 prompt

2016-08-30 Thread Nellis, Kenneth
From: Andrey Repin > > Greetings, Eric Blake! > > > But it seems like \n handling in PS1 is independent of any change in > > handing in the 'read' builtin. As evidence, I ran the following test > > using the older bash-4.3.42-4 build: > > > $ bash-4.3.42-4 > > $ set -o igncr > > $ PS1='$(date)

Re: Proposal for new cygwin.bat which is independent from install directory

2016-08-30 Thread Corinna Vinschen
On Aug 26 18:23, Christian Franke wrote: > Traditionally setup.exe creates the /cygwin.bat file as follows if C:\cygwin > is the install directory: > - > @echo off > > C: > chdir C:\cygwin\bin > > bash --login -i > - > > > The following should work since WinXP regardless of install dire

Re: Proposal for new cygwin.bat which is independent from install directory

2016-08-30 Thread Corinna Vinschen
On Aug 27 19:12, Andrey Repin wrote: > Greetings, Christian Franke! > > > Andrey Repin wrote: > >> ... > >> Why so complicated? > >> > >> @START "" /B "%~dp0bin\mintty.exe" - > >> > >> Done. > > > Possibly not. This does not run bash in current console. It starts a new > > mintty Window. > > Wh

RE: Windows Subsystem For Linux

2016-08-30 Thread Schwarz, Konrad
> So I was wondering if the Windows Subsystem For Linux, apparently part > of Windows 10 Anniversary Update, obsoletes Cygwin. Thank you for your responses and sorry for the wording of my original post. I now understand the differences somewhat better. -- Problem reports: http://cygwin.com

Re: Attempting to build cygwin1.dll

2016-08-30 Thread Marco Atzeri
On 30/08/2016 09:34, Nirgendsdorf wrote: On Tue, 30 Aug 2016 01:04:23 -0500, Yaakov Selkowitz wrote: On 2016-08-29 21:21, Nirgendsdorf wrote: I am sure I have all the support libraries for the 32-bit mingw gcc installed and working (I've built software with it). Does this mean a 64-bit machine

Re: bash: igncr shell option breaks my PS1 prompt

2016-08-30 Thread Houder
On 2016-08-29 19:43, Eric Blake wrote: On 08/28/2016 03:20 PM, Gene Pavlovsky wrote: Re-posting a reply I got from Henri (aka Houder) hou...@xs4all.nl His letter follows: Hi Gene, Reread your entry to the mailing list ... Apparently the latest bash in Cygwin modified the read builtin to use

Re: Windows Subsystem For Linux

2016-08-30 Thread lloyd.wood
A viewpoint on this whole Windows Ubuntu Frankenstein hybrid vs Cygwin thing: In comparison with the difficulties trying to build Geomview under 64-bit Cygwin, then discovering the piping issues that prevent it working with modules, using the Windows Ubuntu subsystem to install pre-existing Ubunt

Re: Attempting to build cygwin1.dll

2016-08-30 Thread Nirgendsdorf
On Tue, 30 Aug 2016 01:04:23 -0500, Yaakov Selkowitz wrote: On 2016-08-29 21:21, Nirgendsdorf wrote: I am sure I have all the support libraries for the 32-bit mingw gcc installed and working (I've built software with it). Does this mean a 64-bit machine is required to build the Cygwin DLL? No;