Re: missing perl directories

2021-01-21 Thread Brian Inglis
On 2021-01-21 09:09, Anthony Heading wrote: Whenever I have a new cygwin setup, I get an error/warning when trying to install perl modules: % cpan install Win32::Symlink Loading internal logger. Log::Log4perl recommended for better logging [...] Use of uninitialized value $what in

Re: Sargasso.net mirror is gone?

2021-01-21 Thread Brian Inglis
On 2021-01-21 09:32, Marco Atzeri via Cygwin wrote: On 21.01.2021 17:19, Hamish McIntyre-Bhatty via Cygwin wrote: On 21/01/2021 16:16, Marco Atzeri via Cygwin wrote: On 21.01.2021 17:06, Hamish McIntyre-Bhatty via Cygwin wrote: Hi there, the process is almost automatic when a mirror is

Re: gdb not working properly in Cygwin

2021-01-21 Thread Ken Brown via Cygwin
On 1/21/2021 5:27 PM, Tord Andreasson via Cygwin wrote: Hi, I encounter the same issue too. gdb starts however there is no gdb prompt, nothing is echoed and nothing is printed on the bash window except an empty blank line. From now you operate blindfolded. Debugging a simple application that

Re: gdb not working properly in Cygwin

2021-01-21 Thread matthew patton via Cygwin
On Thursday, January 21, 2021, 05:29:27 PM EST, Tord Andreasson via Cygwin wrote: > I tried "strace -o /tmp/gdb.strace /usr/bin/gdb --version" and indeed there >are lines with 37 error messages in it. Since the trace file is large (2MB) $ Err_6.4.5.exe  0xC034 says:  

Re: [PATCH] Cygwin: ptsname_r: always return an error number on failure

2021-01-21 Thread Ken Brown via Cygwin-patches
On 1/20/2021 1:00 PM, Ken Brown via Cygwin-patches wrote: Following Linux, return ENOTTY on a bad file descriptor and also set errno to ENOTTY. Previously 0 was returned and errno was set to EBADF. Returning 0 violates the requirement in https://man7.org/linux/man-pages/man3/ptsname_r.3.html

Re: gdb not working properly in Cygwin

2021-01-21 Thread Tord Andreasson via Cygwin
Hi, I encounter the same issue too. gdb starts however there is no gdb prompt, nothing is echoed and nothing is printed on the bash window except an empty blank line. From now you operate blindfolded. Debugging a simple application that prints "Hello World" on file demonstrates that gdb loads

[PATCH v2 4/4] Cygwin: pty: Allow multiple apps to enable pseudo console simultaneously.

2021-01-21 Thread Takashi Yano via Cygwin-patches
- After commit bb428520, there has been the disadvantage: 7) Pseudo console cannot be activated if it is already activated for another process on same pty. This patch clears this disadvantage. --- winsup/cygwin/fhandler.h | 3 + winsup/cygwin/fhandler_tty.cc | 240

[PATCH v2 2/4] Cygwin: pty: Keep code page between non-cygwin apps.

2021-01-21 Thread Takashi Yano via Cygwin-patches
- After commit bb428520, there has been the disadvantage: 4) Code page cannot be changed by chcp.com. Acctually, chcp works itself and changes code page of its own pseudo console. However, since pseudo console is recreated for another process, it cannot inherit the code page.

[PATCH v2 1/4] Cygwin: pty: Inherit typeahead data between two input pipes.

2021-01-21 Thread Takashi Yano via Cygwin-patches
- PTY has a problem that the key input, which is typed during windows native app is running, disappears when it returns to shell. This is beacuse pty has two input pipes, one is for cygwin apps and the other one is for native windows apps. The key input during windows native program is

[PATCH v2 0/4] Improve pseudo console support.

2021-01-21 Thread Takashi Yano via Cygwin-patches
The new implementation of pseudo console support by commit bb428520 provides the important advantages, while there also has been several disadvantages compared to the previous implementation. These patches overturn some of them. The disadvantage: 1) The cygwin program which calls console API

Re: Terminal output disappearing after SSH into cygwin

2021-01-21 Thread Ken Brown via Cygwin
On 1/21/2021 1:30 PM, Takashi Yano via Cygwin wrote: On Thu, 21 Jan 2021 13:13:56 -0500 Ken Brown wrote: # when leaving the console clear the screen to increase privacy if [ "$SHLVL" = 1 ]; then [ -x /usr/bin/clear ] && /usr/bin/clear fi That should be the culprit. Is editing

Re: gdb not working properly in Cygwin

2021-01-21 Thread Marco Atzeri via Cygwin
On 21.01.2021 20:02, Daniel, Barry K. via Cygwin wrote: I am trying to build and debug a linux application on a Windows 10 machine. I have installed Cygwin64 with GDB and the GCC compliers. When I open up a Cygwin64 terminal and type "gcc -version" or "g++ --version" I get the normal

Re: [ANNOUNCEMENT] Test: python packages

2021-01-21 Thread Marco Atzeri via Cygwin
On 21.01.2021 18:06, Hamish McIntyre-Bhatty via Cygwin wrote: install one and it will remove the other, also as they have the same content in this case That makes sense, but that's not what happened here - it prompted to remove "pylint" itself and install "python38-plint" but only after

Re: Terminal output disappearing after SSH into cygwin

2021-01-21 Thread matthew patton via Cygwin
On Thursday, January 21, 2021, 01:30:41 PM EST, Takashi Yano via Cygwin wrote: On Thu, 21 Jan 2021 13:13:56 -0500 Ken Brown wrote: > # when leaving the console clear the screen to increase privacy > if [ "$SHLVL" = 1 ]; then >    [ -x /usr/bin/clear ] && /usr/bin/clear > fi That should be

Re: Terminal output disappearing after SSH into cygwin

2021-01-21 Thread Takashi Yano via Cygwin
On Thu, 21 Jan 2021 13:13:56 -0500 Ken Brown wrote: > # when leaving the console clear the screen to increase privacy > if [ "$SHLVL" = 1 ]; then >[ -x /usr/bin/clear ] && /usr/bin/clear > fi That should be the culprit. Is editing /etc/bash.bash_logout the right thing? -- Takashi Yano --

Re: Terminal output disappearing after SSH into cygwin

2021-01-21 Thread Ken Brown via Cygwin
On 1/21/2021 12:28 PM, Takashi Yano via Cygwin wrote: On Thu, 21 Jan 2021 15:45:28 +0100 Martyn B wrote: - same behavior if I use "exit" or "logout". "bash_logout" gives me "command not found" - shell is /bin/bash on both sides What does "cat ~/.bash_logout" say? - the command

Re: How to reinstall everything?

2021-01-21 Thread Bill Stewart
On Sun, Jan 17, 2021 at 11:23 AM matthew patton wrote: > can we fix setup.exe to read STDIN with '-P', like so? > echo 'pkg1,pkg2,pkg3' | setup.exe -P - What problem does this solve for you? PowerShell example, if you're not familiar: $packages = 'pkg1','pkg2','pkg3' setup -P ($packages -join

Re: Terminal output disappearing after SSH into cygwin

2021-01-21 Thread Takashi Yano via Cygwin
On Thu, 21 Jan 2021 15:45:28 +0100 Martyn B wrote: > - same behavior if I use "exit" or "logout". > "bash_logout" gives me "command not found" > - shell is /bin/bash on both sides What does "cat ~/.bash_logout" say? > - the command "cygcheck -c Cygwin" clears the local lines from >

Re: [ANNOUNCEMENT] Test: python packages

2021-01-21 Thread Hamish McIntyre-Bhatty via Cygwin
On 21/01/2021 16:52, Marco Atzeri via Cygwin wrote: > On 21.01.2021 17:37, Hamish McIntyre-Bhatty via Cygwin wrote: >> On 21/01/2021 16:27, Marco Atzeri via Cygwin wrote: >>> On 21.01.2021 17:18, Hamish McIntyre-Bhatty via Cygwin wrote: On 19/01/2021 21:08, Marco Atzeri via Cygwin-announce

Re: [ANNOUNCEMENT] Test: python packages

2021-01-21 Thread Marco Atzeri via Cygwin
On 21.01.2021 17:37, Hamish McIntyre-Bhatty via Cygwin wrote: On 21/01/2021 16:27, Marco Atzeri via Cygwin wrote: On 21.01.2021 17:18, Hamish McIntyre-Bhatty via Cygwin wrote: On 19/01/2021 21:08, Marco Atzeri via Cygwin-announce via Cygwin wrote: Several python packages have been uploaded as

Re: [ANNOUNCEMENT] Test: python packages

2021-01-21 Thread Hamish McIntyre-Bhatty via Cygwin
On 21/01/2021 16:27, Marco Atzeri via Cygwin wrote: > On 21.01.2021 17:18, Hamish McIntyre-Bhatty via Cygwin wrote: >> On 19/01/2021 21:08, Marco Atzeri via Cygwin-announce via Cygwin wrote: >>> Several python packages have been uploaded as test > > Hi Hamish > please trim when replying Sorry,

Re: Sargasso.net mirror is gone?

2021-01-21 Thread Marco Atzeri via Cygwin
On 21.01.2021 17:19, Hamish McIntyre-Bhatty via Cygwin wrote: On 21/01/2021 16:16, Marco Atzeri via Cygwin wrote: On 21.01.2021 17:06, Hamish McIntyre-Bhatty via Cygwin wrote: Hi there, the process is almost automatic when a mirror is for some time out of sync, it is removed from the list

Re: [ANNOUNCEMENT] Test: python packages

2021-01-21 Thread Marco Atzeri via Cygwin
On 21.01.2021 17:18, Hamish McIntyre-Bhatty via Cygwin wrote: On 19/01/2021 21:08, Marco Atzeri via Cygwin-announce via Cygwin wrote: Several python packages have been uploaded as test Hi Hamish please trim when replying Thanks for packaging pylint Marco, should be very useful. While

Re: How to reinstall everything?

2021-01-21 Thread Hamish McIntyre-Bhatty via Cygwin
On 21/01/2021 16:24, Marco Atzeri via Cygwin wrote: > On 21.01.2021 17:00, Hamish McIntyre-Bhatty via Cygwin wrote: >> On 16/01/2021 21:02, Marco Atzeri via Cygwin wrote: On 16.01.2021 20:55, Hamish McIntyre-Bhatty via Cygwin wrote: > In reply to Marco Atzeri: > >> >> Bumping in case you

Re: How to reinstall everything?

2021-01-21 Thread Marco Atzeri via Cygwin
On 21.01.2021 17:00, Hamish McIntyre-Bhatty via Cygwin wrote: On 16/01/2021 21:02, Marco Atzeri via Cygwin wrote: On 16.01.2021 20:55, Hamish McIntyre-Bhatty via Cygwin wrote: In reply to Marco Atzeri: Bumping in case you didn't see my follow up query Marco: What license are these

Re: missing perl directories

2021-01-21 Thread Marco Atzeri via Cygwin
On 21.01.2021 17:09, Anthony Heading wrote: Hi, Whenever I have a new cygwin setup, I get an error/warning when trying to install perl modules: ls: cannot access '/usr/local/lib/perl5/site_perl/5.30/x86_64-cygwin-threads': No such file or directory ls: cannot access

Re: Sargasso.net mirror is gone?

2021-01-21 Thread Hamish McIntyre-Bhatty via Cygwin
On 21/01/2021 16:16, Marco Atzeri via Cygwin wrote: > On 21.01.2021 17:06, Hamish McIntyre-Bhatty via Cygwin wrote: >> Hi there, >> >> Did I miss something? I've been using the sargasso.net Cygwin mirror, >> but it seems to be gone from the list and I get warnings now when I try >> to use it. I

Re: [ANNOUNCEMENT] Test: python packages

2021-01-21 Thread Hamish McIntyre-Bhatty via Cygwin
On 19/01/2021 21:08, Marco Atzeri via Cygwin-announce via Cygwin wrote: > Several python packages have been uploaded as test > > idle38-3.8.7-1 > python38-3.8.7-1 > python38-devel-3.8.7-1 > python38-test-3.8.7-1 > python38-tkinter-3.8.7-1 > > python36-astroid-2.4.2-1 > python37-astroid-2.4.2-1 >

Re: Sargasso.net mirror is gone?

2021-01-21 Thread Marco Atzeri via Cygwin
On 21.01.2021 17:06, Hamish McIntyre-Bhatty via Cygwin wrote: Hi there, Did I miss something? I've been using the sargasso.net Cygwin mirror, but it seems to be gone from the list and I get warnings now when I try to use it. I imagine there must have been a notice about this that I missed, but

Re: cut and paste doesn't work

2021-01-21 Thread Eliot Moss
On 1/21/2021 2:34 AM, KAVALAGIOS Panagiotis (EEAS-EXT) wrote: -Original Message- From: Cygwin On Behalf Of Thomas Wolff Sent: 21 January 2021 02:08 Am 20.01.2021 um 21:31 schrieb Wojciech Puchar: trying to mark text in cygwin windows by mouse doesn't work at all. Windows 10. The same

Re: gdb dysfuntional: no output in bash window, no echo

2021-01-21 Thread Marco Atzeri via Cygwin
please reply to the mailing list On 21.01.2021 15:39, Tord Andreasson wrote: Hi Marco, I did not think about that, and I really wonder if that is the root cause behind the issue since the content of bash window remains the same, without any blank lines (or lines using e.g. black text on a

missing perl directories

2021-01-21 Thread Anthony Heading
Hi, Whenever I have a new cygwin setup, I get an error/warning when trying to install perl modules: % cpan install Win32::Symlink Loading internal logger. Log::Log4perl recommended for better logging [...] Use of uninitialized value $what in concatenation (.) or string at

Sargasso.net mirror is gone?

2021-01-21 Thread Hamish McIntyre-Bhatty via Cygwin
Hi there, Did I miss something? I've been using the sargasso.net Cygwin mirror, but it seems to be gone from the list and I get warnings now when I try to use it. I imagine there must have been a notice about this that I missed, but thought I should check. Hamish 0x87B761FE07F548D6.asc

Re: Terminal output disappearing after SSH into cygwin

2021-01-21 Thread matthew patton via Cygwin
On Thursday, January 21, 2021, 10:49:14 AM EST, Martyn B wrote: > 1) understand why this happens. - Is this the Cygwin standard behavior? Not in the slightest. -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:

Re: How to reinstall everything?

2021-01-21 Thread Hamish McIntyre-Bhatty via Cygwin
On 16/01/2021 21:02, Marco Atzeri via Cygwin wrote: >> On 16.01.2021 20:55, Hamish McIntyre-Bhatty via Cygwin wrote: >>> In reply to Marco Atzeri: >>> >>> """ >>> Some time ago I put a script here: >>> https://stackoverflow.com/questions/46829532/cygwin-save-package-selections-for-later-reinstall

Re: Terminal output disappearing after SSH into cygwin

2021-01-21 Thread Martyn B
Marco Atzeri via Cygwin wrote on 21.01.21 16:13: very simple: ssh |& tee /tmp/ssh.log you can also use screen logging capability https://stackpointer.io/unix/linux-ssh-session-logging/564/ Thanks for the suggestions. I am aware of tee and screen and might as well even copy/paste the

Re: Terminal output disappearing after SSH into cygwin

2021-01-21 Thread Marco Atzeri via Cygwin
On 21.01.2021 14:08, Martyn B wrote: Hi list! Usually after an ssh session, the lines in my terminal are persistant after exiting the session. This is what I need. But at the moment when I exit an ssh session into Cygwin, the terminal gets cleared and all session information is lost. How

Re: Terminal output disappearing after SSH into cygwin

2021-01-21 Thread Martyn B
Takashi Yano via Cygwin wrote on 21.01.21 14:29: Takashi Yano via Cygwin wrote: Please update cygwin to 3.1.7. Sorry, I might misunderstand your problem. Does your problem happen when you exit from ssh session to cygwin? If so, are you using ~/.bash_logout (for bash) or ~/.logout (for

Re: Terminal output disappearing after SSH into cygwin

2021-01-21 Thread Takashi Yano via Cygwin
On Thu, 21 Jan 2021 22:13:53 +0900 Takashi Yano via Cygwin wrote: > On Thu, 21 Jan 2021 14:08:45 +0100 > Martyn B wrote: > > Hi list! > > > > Usually after an ssh session, the lines in my terminal are persistant > > after exiting the session. This is what I need. > > > > But at the moment when

Re: Terminal output disappearing after SSH into cygwin

2021-01-21 Thread Takashi Yano via Cygwin
On Thu, 21 Jan 2021 14:08:45 +0100 Martyn B wrote: > Hi list! > > Usually after an ssh session, the lines in my terminal are persistant > after exiting the session. This is what I need. > > But at the moment when I exit an ssh session into Cygwin, the terminal > gets cleared and all session

[PATCH 4/4] Cygwin: pty: Allow multiple apps to enable pseudo console simultaneously.

2021-01-21 Thread Takashi Yano via Cygwin-patches
- After commit bb428520, there has been the disadvantage: 7) Pseudo console cannot be activated if it is already activated for another process on same pty. This patch clears this disadvantage. --- winsup/cygwin/fhandler.h | 3 + winsup/cygwin/fhandler_tty.cc | 239

[PATCH 3/4] Cygwin: pty: Make apps using console APIs be able to debug with gdb.

2021-01-21 Thread Takashi Yano via Cygwin-patches
- After commit bb428520, there has been the disadvantage: 2) The apps which use console API cannot be debugged with gdb. This is because pseudo console is not activated since gdb uses CreateProcess() rather than exec(). Even with this limitation, attaching gdb to native app, in

[PATCH 2/4] Cygwin: pty: Keep code page between non-cygwin apps.

2021-01-21 Thread Takashi Yano via Cygwin-patches
- After commit bb428520, there has been the disadvantage: 4) Code page cannot be changed by chcp.com. Acctually, chcp works itself and changes code page of its own pseudo console. However, since pseudo console is recreated for another process, it cannot inherit the code page.

[PATCH 1/4] Cygwin: pty: Inherit typeahead data between two input pipes.

2021-01-21 Thread Takashi Yano via Cygwin-patches
- PTY has a problem that the key input, which is typed during windows native app is running, disappears when it returns to shell. This is beacuse pty has two input pipes, one is for cygwin apps and the other one is for native windows apps. The key input during windows native program is

[PATCH 0/4] Improve pseudo console support.

2021-01-21 Thread Takashi Yano via Cygwin-patches
The new implementation of pseudo console support by commit bb428520 provides the important advantages, while there also has been several disadvantages compared to the previous implementation. These patches overturn some of them. The disadvantage: 1) The cygwin program which calls console API

Terminal output disappearing after SSH into cygwin

2021-01-21 Thread Martyn B
Hi list! Usually after an ssh session, the lines in my terminal are persistant after exiting the session. This is what I need. But at the moment when I exit an ssh session into Cygwin, the terminal gets cleared and all session information is lost. How can I change this behavior? I need the

Re: gdb dysfuntional: no output in bash window, no echo

2021-01-21 Thread Marco Atzeri via Cygwin
On 21.01.2021 13:06, Tord Andreasson via Cygwin wrote: Hi, torda@Tord-desktop ~ /HelloWorld $ gdb ./helloworld.exe run quit torda@Tord-desktop ~/HelloWorld $ Hopefully this description is comprehensible, if not please let me know if anything is missing. Any idea what I should look at

Re: cut and paste doesn't work

2021-01-21 Thread Hamish McIntyre-Bhatty via Cygwin
On 21/01/2021 10:09, Andrey Repin wrote: > Greetings, Hamish McIntyre-Bhatty! > >> NB: I don't think I have this problem, but I do seem to have an >> unrelated problem where as soon as I select any text in mintty it >> immediately replaced my clipboard contents which that selection. > This is

gdb dysfuntional: no output in bash window, no echo

2021-01-21 Thread Tord Andreasson via Cygwin
Hi, I just updated my cygwin 64 bit installation in order to resume a programming project that I left aside quite some time ago. Everything seems to work as it used to as I am able to pick up the project where I left it, I can build and run the application however gdb I/O seems broken. Here are

Re: cut and paste doesn't work

2021-01-21 Thread Andrey Repin
Greetings, Hamish McIntyre-Bhatty! > On 21/01/2021 07:34, KAVALAGIOS Panagiotis (EEAS-EXT) wrote: >>> -Original Message- >>> From: Cygwin On Behalf Of Thomas Wolff >>> Sent: 21 January 2021 02:08 >>> >>> Am 20.01.2021 um 21:31 schrieb Wojciech Puchar: trying to mark text in cygwin

Re: cut and paste doesn't work

2021-01-21 Thread Hamish McIntyre-Bhatty via Cygwin
On 21/01/2021 07:34, KAVALAGIOS Panagiotis (EEAS-EXT) wrote: >> -Original Message- >> From: Cygwin On Behalf Of Thomas Wolff >> Sent: 21 January 2021 02:08 >> >> Am 20.01.2021 um 21:31 schrieb Wojciech Puchar: >>> trying to mark text in cygwin windows by mouse doesn't work at all. >>>