Re: A process spawned inside gem command running on latest ruby segfaults

2025-04-10 Thread Daisuke Fujimura via Cygwin
Thank you for the advice. I updated cygwin and ran again. ``` $ uname -srvmpio CYGWIN_NT-10.0-22000-ARM64 3.6.1-1.x86_64 2025-04-09 11:31 UTC x86_64 unknown unknown Cygwin (snip) $ gdb /usr/bin/ruby (gdb) set cygwin-exceptions on (gdb) run /usr/bin/gem install -V --local --ignore-dependencies --d

Re: A process spawned inside gem command running on latest ruby segfaults

2025-02-21 Thread Jon Turney via Cygwin
On 20/02/2025 15:33, Daisuke Fujimura via Cygwin wrote: Reproduction: - Use ruby-3.4.2-1 (test) - Install gem containing native libraries ``` $ uname -srvmpio CYGWIN_NT-10.0-22000 3.5.7-1.x86_64 2025-01-29 19:46 UTC x86_64 unknown unknown Cygwin $ ruby -v ruby 3.4.2 (2025-02-15 revision d2930f8e

A process spawned inside gem command running on latest ruby segfaults

2025-02-20 Thread Daisuke Fujimura via Cygwin
Reproduction: - Use ruby-3.4.2-1 (test) - Install gem containing native libraries ``` $ uname -srvmpio CYGWIN_NT-10.0-22000 3.5.7-1.x86_64 2025-01-29 19:46 UTC x86_64 unknown unknown Cygwin $ ruby -v ruby 3.4.2 (2025-02-15 revision d2930f8e7a) +PRISM [x86_64-cygwin] $ gem -v 3.5.11 $ cd /tmp $ git

Re: Potential Argument Injection Issue in Cygwin's Command Line Handling

2025-02-11 Thread Brian Inglis via Cygwin
identical argv[]. (Am I correct?) It appears not from the previous comments, the MS algorithm/hackaround messes up various argument strings and makes the original contents irretrievable, if they do not obey their limitations, rather than just pass along the verbatim command line as a string, as

Re: Potential Argument Injection Issue in Cygwin's Command Line Handling

2025-02-10 Thread Kaz Kylheku via Cygwin
On 2025-02-03 22:15, Splitline Huang via Cygwin wrote: > Hello Cygwin team, > > I am splitline from DEVCORE research team. I recently have observed an > inconsistency > in how Cygwin handles command-line parsing compared to Microsoft’s > implementation. Hi, I maintain a small

Re: Potential Argument Injection Issue in Cygwin's Command Line Handling

2025-02-10 Thread Kaz Kylheku via Cygwin
resent in every Windows (ShellAPI). What I've noticed in Cygwin is that it destroys the command line! When you call GetCommandLineW in a Cygwin process, you get an empty line. I recently posted here about this. That means you cannot ignore the arguments given in main() and just do

Re: Potential Argument Injection Issue in Cygwin's Command Line Handling

2025-02-10 Thread Brian Inglis via Cygwin
e support). Starting Windows programs with command line arguments from Cygwin programs and shells may require the runner to take account of and work around Cygwin's conventions, just as starting Cygwin programs with command line arguments from Windows programs and shells may require the runner

Re: Potential Argument Injection Issue in Cygwin's Command Line Handling

2025-02-09 Thread Splitline Ng via Cygwin
> Windows is security deficient in this area, not Cygwin. > > I'll quote myself to share my opinion: > https://git.lighttpd.net/lighttpd/lighttpd1.4/src/branch/master/src/fdevent_win32.c#L543 > * The Microsoft CreateProcess() interface is criminally broken. > * Forcing argument strings to

Re: Potential Argument Injection Issue in Cygwin's Command Line Handling

2025-02-04 Thread Glenn Strauss via Cygwin
t;', ' a b c'], returncode=0) > > > > it seems correct to me for a Cygwin Python > > This behavior appears correct for Cygwin Python because it assumes it > is running on a POSIX system. As a result, it uses Cygwin's simulated > `execve` system call rather than

Re: Potential Argument Injection Issue in Cygwin's Command Line Handling

2025-02-04 Thread Splitline Ng via Cygwin
r Cygwin Python because it assumes it is running on a POSIX system. As a result, it uses Cygwin's simulated `execve` system call rather than Windows' command-line parsing mechanism and the parsing mechanism within Cygwin itself is consistent so everything goes fine here. To be more specif

Re: Potential Argument Injection Issue in Cygwin's Command Line Handling

2025-02-03 Thread Marco Atzeri via Cygwin
On 04/02/2025 07:15, Splitline Huang via Cygwin wrote: Hello Cygwin team, I am splitline from DEVCORE research team. I recently have observed an inconsistency in how Cygwin handles command-line parsing compared to Microsoft’s implementation. According to Microsoft’s documentation [1], the

Potential Argument Injection Issue in Cygwin's Command Line Handling

2025-02-03 Thread Splitline Huang via Cygwin
Hello Cygwin team, I am splitline from DEVCORE research team. I recently have observed an inconsistency in how Cygwin handles command-line parsing compared to Microsoft’s implementation. According to Microsoft’s documentation [1], the \" sequence should always be interpreted as a literal d

Re: Cygwin command to bind new process to CPUs 3,4?

2024-12-10 Thread Christian Franke via Cygwin
Cedric Blancher via Cygwin wrote: Good morning! Does Cycgwin have a command to bind a new process to a specific set of CPUs, e.g. bind /usr/bin/eatfrogs to CPU cores 3 and 4? $ taskset -c 3,4 /usr/bin/eatfrogs ... $ cygcheck -f /usr/bin/taskset util-linux-2.39.3-2 -- Regards, Christian

Cygwin command to bind new process to CPUs 3,4?

2024-12-10 Thread Cedric Blancher via Cygwin
Good morning! Does Cycgwin have a command to bind a new process to a specific set of CPUs, e.g. bind /usr/bin/eatfrogs to CPU cores 3 and 4? Ced -- Cedric Blancher [https://plus.google.com/u/0/+CedricBlancher/] Institute Pasteur -- Problem reports: https://cygwin.com/problems.html FAQ

Re: cygpath command no longer accepts -s (--short-name) switch

2024-11-15 Thread Andrey Repin via Cygwin
Greetings, Soren! > Hello users. I have a reasonably recently installed Cygwin that I've kept > updated with setup. I am just now seeing that the provided `cygpath` > command no longer works the way it ought to. Could someone(s) confirm or > deny this? And fix it, because i

Re: cygpath command no longer accepts -s (--short-name) switch

2024-11-08 Thread Soren via Cygwin
2024, at 16:20, Soren via Cygwin wrote: > > > > > > Hello users. I have a reasonably recently installed Cygwin that I've kept > > updated with setup. I am just now seeing that the provided `cygpath` > > command no longer works the way it ought to. Could someone(s) con

Re: cygpath command no longer accepts -s (--short-name) switch

2024-11-08 Thread Corinna Vinschen via Cygwin
On Nov 8 10:20, Soren via Cygwin wrote: > Hello users. I have a reasonably recently installed Cygwin that I've kept > updated with setup. I am just now seeing that the provided `cygpath` > command no longer works the way it ought to. Could someone(s) confirm or > deny this? An

Re: cygpath command no longer accepts -s (--short-name) switch

2024-11-08 Thread Dimitry Andric via Cygwin
On 8 Nov 2024, at 16:20, Soren via Cygwin wrote: > > > Hello users. I have a reasonably recently installed Cygwin that I've kept > updated with setup. I am just now seeing that the provided `cygpath` > command no longer works the way it ought to. Could someone(s) confirm

cygpath command no longer accepts -s (--short-name) switch

2024-11-08 Thread Soren via Cygwin
Hello users. I have a reasonably recently installed Cygwin that I've kept updated with setup. I am just now seeing that the provided `cygpath` command no longer works the way it ought to. Could someone(s) confirm or deny this? And fix it, because it is an important facility. $ cygpat

Re: Help understanding why a mount command is not working and how to fix it

2024-09-13 Thread Eliot Moss via Cygwin
024-08-25 16:52 UTC x86_64 Cygwin and this output if I do mkdir /foo first: mount: /foo: Invalid argument Using \040 instead of the space for the quoted command line argument gives the same behavior. Hints on how to make this mount work? Best wishes - Eliot Moss I ended up creating a bin

Re: Help understanding why a mount command is not working and how to fix it

2024-09-10 Thread Andrey Repin via Cygwin
Greetings, Eliot Moss! > Dear Cygwiners -- > For convenience, I would like to mount my OneDrive folder under /cygdrive/o. > I put this line in my /etc/fstab: > c:/Users/Eliot\040Moss/OneDrive /cygdrive/o ntfs binary,noacl,posix=0,user 0 0 /cygdrive is a system entry point. Manually placing any

Re: Help understanding why a mount command is not working and how to fix it

2024-09-09 Thread José Isaías Cabrera via Cygwin
On Monday, September 9, 2024 02:23 PM, Eliot Moss expressed: > > Dear Cygwiners -- > > For convenience, I would like to mount my OneDrive folder under /cygdrive/o. If mount does not work, what I did was to map it to a Windows drive (O:) and then use cygdrive (/cygdrive/o/) to do my rsync calls.

Re: Help understanding why a mount command is not working and how to fix it

2024-09-09 Thread René Berber via Cygwin
output if I do mkdir /foo first: mount: /foo: Invalid argument Using \040 instead of the space for the quoted command line argument gives the same behavior. Hints on how to make this mount work? Best wishes - Eliot Moss -- Problem reports: https://cygwin.com/problems.html FAQ:

Help understanding why a mount command is not working and how to fix it

2024-09-09 Thread Eliot Moss via Cygwin
,posix=0,user "/c/Users/Eliot Moss/OneDrive" /foo results in this output if /foo does not exist: mount: warning - /foo does not exist. mount: /foo: Invalid argument and this output if I do mkdir /foo first: mount: /foo: Invalid argument Using \040 instead of the space for the quoted co

Re: Bug: bash redirect "magic" variable content to input of command hangs (upstream of https://github.com/git-for-windows/git/issues/5001)

2024-06-11 Thread jojelino via Cygwin
On 6/10/2024 8:12 PM, Holger Klene via Cygwin wrote: This is: GNU bash, Version 5.2.21(1)-release (x86_64-pc-cygwin) Was also reproduced in git-bash 5.2.26(1)-release (also cygwin) but not in WSL-bash 5.1.16 (independent of cygwin) This regression is introduced in bash-5.1, Introduced changes in

Re: Bug: bash redirect "magic" variable content to input of command hangs (upstream of https://github.com/git-for-windows/git/issues/5001)

2024-06-10 Thread Thomas Wolff via Cygwin
Am 10.06.2024 um 13:12 schrieb Holger Klene via Cygwin: Hi Cygwin, On reading a magic value back from a bash variable, the involved command (wc, grep, cat, ...) hangs indefinitely and has to be stopped by Ctrl+C Editing it's content by deleting lines, the "magic" goe

Bug: bash redirect "magic" variable content to input of command hangs (upstream of https://github.com/git-for-windows/git/issues/5001)

2024-06-10 Thread Holger Klene via Cygwin
Hi Cygwin, On reading a magic value back from a bash variable, the involved command (wc, grep, cat, ...) hangs indefinitely and has to be stopped by Ctrl+C Editing it's content by deleting lines, the "magic" goes away. Also as demonstrated, other text-files (even twice the

bash: '\n' after command substitution in $PS1 causes errors when igncr is set

2024-05-22 Thread Ken Takata via Cygwin
Hello all, I originally reported this issue to the msys2 team: https://github.com/msys2/MSYS2-packages/issues/1839 https://github.com/msys2/MSYS2-packages/pull/4477 But I find that this issue is coming from Cygwin Bash, so I'm reporting here. When I use \n after command substitution in $PS

Re: 3.5.x regression: misquoting command line arguments from native processes

2024-04-22 Thread Corinna Vinschen via Cygwin
Hi David, On Apr 20 08:43, David Allsopp via Cygwin wrote: > Hi Corinna, > > > On Apr 9 22:38, Corinna Vinschen via Cygwin wrote: > > > On Apr 3 16:53, David Allsopp via Cygwin wrote: > > > > I have what appears to be a regression in Cygwin 3.5.0 which, owing to > > > > a CI system lagging behi

Re: cygrunsrv: trailing command line arguyments not allowed

2024-04-20 Thread enrique--- via Cygwin
Den 2024-04-20 14:12, skrev enrique--- via Cygwin: $ cygrunsrv -I -p /usr/sbin/cron.exe -a -n cygrunsrv: Trailing commandline arguments not allowed Try `cygrunsrv --help' for more information. [snip] What am I doing wrong? I found it: Missing service name after "-I". -Thanks -- Problem repo

Re: cygrunsrv: trailing command line arguments not allowed

2024-04-20 Thread Brian Inglis via Cygwin
am I doing wrong? I would try --args '-n' instead of -a -n.  Perhaps some other variation of quoting will be needed to make clear to cygrunsrv that the -n is for the application, not for cygrunsrv. Unadorned options anywhere on the command line are parsed by getopt, which is why

Re: cygrunsrv: trailing command line arguyments not allowed

2024-04-20 Thread Eliot Moss via Cygwin
On 4/20/2024 8:12 AM, enrique--- via Cygwin wrote: Hello, I am trying to install a service manually in an attempt to understand why cron-config did not work for me. So, I did this: $ net stop cron Tjenesten Cron daemon stopper . Tjenesten Cron daemon ble stoppet. $ cygrunsrv -R cron $ cygr

cygrunsrv: trailing command line arguyments not allowed

2024-04-20 Thread enrique--- via Cygwin
Hello, I am trying to install a service manually in an attempt to understand why cron-config did not work for me. So, I did this: $ net stop cron Tjenesten Cron daemon stopper . Tjenesten Cron daemon ble stoppet. $ cygrunsrv -R cron $ cygrunsrv -I -p /usr/sbin/cron.exe -a -n cygrunsrv: Tra

Re: 3.5.x regression: misquoting command line arguments from native processes

2024-04-20 Thread David Allsopp via Cygwin
Hi Corinna, > On Apr 9 22:38, Corinna Vinschen via Cygwin wrote: > > On Apr 3 16:53, David Allsopp via Cygwin wrote: > > > I have what appears to be a regression in Cygwin 3.5.0 which, owing to > > > a CI system lagging behind, we've only just discovered. > > > [...] > > > $ ./t.exe 'C:\Devel\🐫р

Re: 3.5.x regression: misquoting command line arguments from native processes

2024-04-18 Thread Corinna Vinschen via Cygwin
Hi David, On Apr 9 22:38, Corinna Vinschen via Cygwin wrote: > On Apr 3 16:53, David Allsopp via Cygwin wrote: > > I have what appears to be a regression in Cygwin 3.5.0 which, owing to > > a CI system lagging behind, we've only just discovered. > > [...] > > $ ./t.exe 'C:\Devel\🐫реализация-ming

Re: 3.5.x regression: misquoting command line arguments from native processes

2024-04-09 Thread Corinna Vinschen via Cygwin
Hi David, On Apr 3 16:53, David Allsopp via Cygwin wrote: > I have what appears to be a regression in Cygwin 3.5.0 which, owing to > a CI system lagging behind, we've only just discovered. > [...] > $ ./t.exe 'C:\Devel\🐫реализация-mingw64\flexdll\flexdll_mingw64.o' > stat: cannot stat > '"C:\Deve

3.5.x regression: misquoting command line arguments from native processes

2024-04-03 Thread David Allsopp via Cygwin
I have what appears to be a regression in Cygwin 3.5.0 which, owing to a CI system lagging behind, we've only just discovered. In order to torture our Unicode support, OCaml's Windows CI compiles its sources in C:\projects\🐫реализация-mingw64 (that's a directory under C:\projects with the camel em

Re: Win 11 Cygwin dns-utils "dig" and "host": Option -6 causes command to timeout

2024-02-16 Thread Brian Inglis via Cygwin
On 2024-02-15 10:56, Jim Garrison via Cygwin wrote: On 2/14/2024 17:08, Brian Inglis via Cygwin wrote: On 2024-02-14 16:28, Jim Garrison via Cygwin wrote: Win 11 Cygwin "dig" and "host": Option -6 causes command to hang Ditto! Without IPv6 nameservers in /etc/resolv.co

RE: [EXTERNAL] Re: Win 11 Cygwin dns-utils "dig" and "host": Option -6 causes command to timeout

2024-02-15 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin
Correction: > (That would be "options osquery".) Sorry, I have forgotten a few pieces since last time I worked with that code. So in the absence of "/etc/resolv.conf", Cygwin uses OS (Windows DNS Query) API. If /etc/resolv.conf is present, then "options osquery" tells Cygwin to use the Windows

RE: [EXTERNAL] Re: Win 11 Cygwin dns-utils "dig" and "host": Option -6 causes command to timeout

2024-02-15 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin
> Maybe Cygwin should just ask Windows for the name servers? Cygwin does ask Windows, by default, when gethostbyname() or getnameinfo() are used (which most applications do). The lookup does not depend on /etc/resolv.conf unless you configured it to do so in "options" in there. (That would be "o

Re: Win 11 Cygwin dns-utils "dig" and "host": Option -6 causes command to timeout

2024-02-15 Thread Jim Garrison via Cygwin
On 2/14/2024 17:08, Brian Inglis via Cygwin wrote: On 2024-02-14 16:28, Jim Garrison via Cygwin wrote: Win 11 Cygwin "dig" and "host": Option -6 causes command to hang [snip] Ditto! Without IPv6 nameservers in /etc/resolv.conf I get: $ host -6 google.com ;; conn

RE: [EXTERNAL] Re: Win 11 Cygwin dns-utils "dig" and "host": Option -6 causes command to timeout

2024-02-14 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin
> $ host -6 google.com > ;; connection timed out; no servers could be reached FWIW, this hangs just the same on Linux when no IPv6 nameservers configured in /etc/resolv.conf What it tries to do is to inquire the nameserver at [::1]:53 (which is the local host), and then, since bind is not runni

Re: Win 11 Cygwin dns-utils "dig" and "host": Option -6 causes command to timeout

2024-02-14 Thread Brian Inglis via Cygwin
On 2024-02-14 16:28, Jim Garrison via Cygwin wrote: Win 11 Cygwin "dig" and "host": Option -6 causes command to hang TL;DR - It appears "dig" and "host" both depend on the existence of /etc/resolv.conf, but only when the -6 option (send queries ove

Win 11 Cygwin dns-utils "dig" and "host": Option -6 causes command to timeout

2024-02-14 Thread Jim Garrison via Cygwin
Win 11 Cygwin "dig" and "host": Option -6 causes command to hang TL;DR - It appears "dig" and "host" both depend on the existence of /etc/resolv.conf, but only when the -6 option (send queries over IPv6) is specified. /etc/resolv.conf does not exi

RE: Setting process command name in forked process

2024-01-30 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin
> that it matters at all, I'd like to +1 the suggestion/request of picking up > support for > setproctitle(3) in the next available release. >> in which case I'd prefer to implement this via setproctitle(3), given >> this API exists on BSD and Linux. Well, I don't think setproctitle(3) exists on

Re: Setting process command name in forked process

2024-01-29 Thread Steve Beck via Cygwin
next available release. Thanks again! Best, Steve From: Corinna Vinschen Sent: Monday, January 29, 2024 1:58 AM To: cygwin@cygwin.com Cc: Steve Beck Subject: Re: Setting process command name in forked process On Jan 26 18:35, Steve Beck via Cygwin wrote: >

RE: Setting process command name in forked process

2024-01-29 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin
> It used to work in the past, for sure, and was used in some code over here... And yes, like Corinna said, you have to use procps to actually see the changes. Anton Lavrentiev Contractor NIH/NLM/NCBI -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwi

RE: Setting process command name in forked process

2024-01-29 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin
om the linear memory array made up from new argv[] and argc (s_Argc is the original "argc" passed to main()), to make all command line to go into argv[0] for the purposes of "ps" output: extern char** __argv; extern int__argc; char* cmdline; char** x_argv;

Re: Setting process command name in forked process

2024-01-29 Thread Corinna Vinschen via Cygwin
Make sure to install the procps-ng package, and then call system("procps -f"); > Here is the output when running foo.exe: > [...] > Retry in Child 'bar' (argv[0]) with pid 498 setting __argv[0] = 'bar': ps ... > PIDPPIDPGID WINPID TTY

Re: Setting process command name in forked process

2024-01-26 Thread Steve Beck via Cygwin
t;%s parent with pid %d: sleep(5) ...\n", argv[0], getpid()); sleep(5); exit(0); } Here is the output when running foo.exe: foo with pid 497: Entered. About to fork child ... foo parent with pid 497: sleep(5) ... Child 'bar' (argv[0]) with pid 498: ps ... PID

RE: Setting process command name in forked process

2024-01-26 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin
> (I'm assuming it's too late by the time the /proc entry has been set up). Actually, it's not. But beware, the suggested solution is absolutely NOT portable: These are the externals that /proc is referring to... (Not argc, argv passed to main().) extern char** __argv; extern int

Re: Setting process command name in forked process

2024-01-24 Thread Brian Inglis via Cygwin
On 2024-01-23 12:32, Steve Beck via Cygwin wrote: Hope this is an appropriate question for this list: Version 3.4.10 (of cygwin1.dll - cygcheck output attached): I am trying to set the process command name of a forked process. Is there a prescribed way to do this in Cygwin? I looked for either

Re: Install Cygwin 3.5 from command line?

2024-01-04 Thread Jon Turney via Cygwin
On 03/01/2024 06:49, Dan Shelton via Cygwin wrote: Hello! Can someone give me precise instructions on how to install Cygwin 3.5 (setup.exe with Testing+Sync checkboxes selected) from the Windows command line? If I try, I only get Cygwin 3.4. What have you tried? For a fresh install, this

Install Cygwin 3.5 from command line?

2024-01-02 Thread Dan Shelton via Cygwin
Hello! Can someone give me precise instructions on how to install Cygwin 3.5 (setup.exe with Testing+Sync checkboxes selected) from the Windows command line? If I try, I only get Cygwin 3.4. -- Dan Shelton - Cluster Specialist Win/Lin/Bsd -- Problem reports: https://cygwin.com

Re: Command 'net user' outputs error message if PKA is used

2023-11-27 Thread Shaddy Baddah via Cygwin
Hi, On 27/11/2023 7:51 pm, tk--- via Cygwin wrote: Any idea why this is happening ? I suspect the reason is related to this long standing understanding of Cygwin: https://sourceware.org/legacy-ml/cygwin/2004-09/msg00087.html On 03/09/2004 2:13 am, Corinna Vinschen wrote: Public Key authenti

Command 'net user' outputs error message if PKA is used

2023-11-27 Thread tk--- via Cygwin
Hi, We have observed that the command 'NET USER' issues en error message and doesn't display the computer name, even if it completes the command successfully: >>>>> User accounts for \\

Re: Entering Cygwin command line (bash login) from Windows cmd.exe ?

2023-08-14 Thread Martin Wege via Cygwin
t; >>>> On Sat, Jul 29, 2023 at 6:18 AM Roland Mainz wrote: > >>>>> Is there an official way to enter the Cygwin command line (e.g. bash > >>>>> login) from Windows cmd.exe, e.g. if someone ssh's into a Windows > >>>>> machine he/

Re: Entering Cygwin command line (bash login) from Windows cmd.exe ?

2023-08-14 Thread Brian Inglis via Cygwin
command line (e.g. bash login) from Windows cmd.exe, e.g. if someone ssh's into a Windows machine he/she ends/up in a cmd.exe and not bash... You may run your favourite shell from the bin directory of your Cygwin installation: "C:\Program Files\Cygwin\bin\bash.exe" "C:\Prog

Re: Entering Cygwin command line (bash login) from Windows cmd.exe ?

2023-08-13 Thread Martin Wege via Cygwin
On Sun, Aug 13, 2023 at 12:53 AM Roland Mainz via Cygwin wrote: > > On Mon, Aug 7, 2023 at 7:38 AM KAVALAGIOS Panagiotis (EEAS) via Cygwin > wrote: > > > > > On Sat, Jul 29, 2023 at 6:18 AM Roland Mainz > > > wrote: > > > > Is there an official wa

Re: Entering Cygwin command line (bash login) from Windows cmd.exe ?

2023-08-13 Thread Jon Turney via Cygwin
On 12/08/2023 23:52, Roland Mainz via Cygwin wrote: Roland P.S.: Which reminds me - is there a way to contribute a Cygwin ksh93 package ? https://cygwin.com/packaging-contributors-guide.html -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/f

Re: Entering Cygwin command line (bash login) from Windows cmd.exe ?

2023-08-12 Thread Roland Mainz via Cygwin
On Mon, Aug 7, 2023 at 7:38 AM KAVALAGIOS Panagiotis (EEAS) via Cygwin wrote: > > > On Sat, Jul 29, 2023 at 6:18 AM Roland Mainz > > wrote: > > > Is there an official way to enter the Cygwin command line (e.g. bash > > > login) from Windows cmd.exe, e.g

Re: Entering Cygwin command line (bash login) from Windows cmd.exe ?

2023-08-08 Thread ASSI via Cygwin
Thomas Wolff via Cygwin writes: > Am 07.08.2023 um 06:02 schrieb Roland Mainz via Cygwin: >> On Sat, Jul 29, 2023 at 6:18 AM Roland Mainz >> wrote: >>> Is there an official way to enter the Cygwin command line (e.g. bash >>> login) from Windows cmd.exe, e.g

Re: Entering Cygwin command line (bash login) from Windows cmd.exe ?

2023-08-08 Thread Thomas Wolff via Cygwin
Am 07.08.2023 um 06:02 schrieb Roland Mainz via Cygwin: On Sat, Jul 29, 2023 at 6:18 AM Roland Mainz wrote: Is there an official way to enter the Cygwin command line (e.g. bash login) from Windows cmd.exe, e.g. if someone ssh's into a Windows machine he/she ends/up in a cmd.exe and not

Re: Entering Cygwin command line (bash login) from Windows cmd.exe ?

2023-08-07 Thread Lee via Cygwin
On 8/7/23, Roland Mainz via Cygwin wrote: > On Sat, Jul 29, 2023 at 6:18 AM Roland Mainz wrote: >> Is there an official way to enter the Cygwin command line (e.g. bash >> login) from Windows cmd.exe, e.g. if someone ssh's into a Windows >> machine he/she ends/up

RE: Entering Cygwin command line (bash login) from Windows cmd.exe ?

2023-08-06 Thread KAVALAGIOS Panagiotis (EEAS) via Cygwin
> On Sat, Jul 29, 2023 at 6:18 AM Roland Mainz > wrote: > > Is there an official way to enter the Cygwin command line (e.g. bash > > login) from Windows cmd.exe, e.g. if someone ssh's into a Windows > > machine he/she ends/up in a cmd.exe and not bash... > >

Re: Entering Cygwin command line (bash login) from Windows cmd.exe ?

2023-08-06 Thread Roland Mainz via Cygwin
On Sat, Jul 29, 2023 at 6:18 AM Roland Mainz wrote: > Is there an official way to enter the Cygwin command line (e.g. bash > login) from Windows cmd.exe, e.g. if someone ssh's into a Windows > machine he/she ends/up in a cmd.exe and not bash... ping! Bye, Roland --

Entering Cygwin command line (bash login) from Windows cmd.exe ?

2023-07-28 Thread Roland Mainz via Cygwin
Hi! Is there an official way to enter the Cygwin command line (e.g. bash login) from Windows cmd.exe, e.g. if someone ssh's into a Windows machine he/she ends/up in a cmd.exe and not bash... Bye, Roland -- __ . . __ (o.\ \/ /.o) roland.ma...@nrubsig.org \__\/\/__/

Slow cygwin command waiting for cygcons.input.mutex.0

2023-07-20 Thread Derek Pagel via Cygwin
d has called when it's stuck. Eventually, I captured this output on the chmod command from that tool: Process 0x1c34 - chmod.exe -- 8080: [1c34:1f90:b]->[Mutex:\BaseNamedObjects\cygwin1S5-144f71ebfd861cae\cygcons.input.mutex.0]->[1c34:160c:r]->[End]

Re: Conda Python script not getting right command line argument

2023-07-03 Thread Brian Inglis via Cygwin
On 2023-07-03 16:12, ravi r via Cygwin wrote: Using Cygwin Python interpreter invoked from shebang line $ cat /tmp/script1 #!/usr/bin/python print("hello"); $ /tmp/script1 hello $ works as expected. Conda Python interpreter invoked from shebang line $ cat /tmp/sc

Conda Python script not getting right command line argument

2023-07-03 Thread ravi r via Cygwin
Using Cygwin Python interpreter invoked from shebang line $ cat /tmp/script1 #!/usr/bin/python print("hello"); $ /tmp/script1 hello $ works as expected. Conda Python interpreter invoked from shebang line $ cat /tmp/script2 #!/usr/local/anaconda3/python print(

Re: Cygwin packages params in setup command line

2023-05-03 Thread marco atzeri via Cygwin
On Wed, May 3, 2023 at 3:26 PM Anderson via Cygwin wrote: > > Hi, > > I need to know if have a limit of packages to install on packages params on > cygwin setup command line. > > I put many packages but some packages are not installed. > > Thanks. > Hi Anderson,

Cygwin packages params in setup command line

2023-05-03 Thread Anderson via Cygwin
Hi, I need to know if have a limit of packages to install on packages params on cygwin setup command line. I put many packages but some packages are not installed. Thanks. -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation

RE: Cygwin 'cp' command is still slow after Cygserver is installed

2023-04-26 Thread Derek Pagel via Cygwin
18091901.tmp" should suffice. I've re-ran the commands and was able to get output for all of them: The command that hung: D:\cygwin64\bin\mv.exe D:/lsenv/law/lsapps/edi/work/v

Re: Cygwin 'cp' command is still slow after Cygserver is installed

2023-04-20 Thread Andrey Repin via Cygwin
Greetings, Derek Pagel! > The icalcs command doesn’t work on either and I haven’t been able to get it > to work elsewhere either. > D:\lsenv\law\lsapps\edi\work>icacls "`cygpath -m interchange.20230418091901" > `cygpath -m interchange.20230418091901: The sy

RE: Cygwin 'cp' command is still slow after Cygserver is installed

2023-04-19 Thread Derek Pagel via Cygwin
v\law\lsapps\edi\work>getfacl interchange.20230418091901.tmp getfacl: interchange.20230418091901.tmp: No such file or directory The icalcs command doesn’t work on either and I haven’t been able to get it to work elsewhere either. D:\lsenv\law\lsapps\edi\work>icacls "`cygpath -m interch

Re: Cygwin 'cp' command is still slow after Cygserver is installed

2023-04-14 Thread Brian Inglis via Cygwin
; and also attach as text, the output from strace on the cp command, as it will show the timing and delays e.g. $ strace -o cp-strace.log cp ... I couldn't run strace on the Cygwin command because the issue is really intermittent. I did have another Cygwin cmd, 'mv', t

RE: Cygwin 'cp' command is still slow after Cygserver is installed

2023-04-14 Thread Derek Pagel via Cygwin
on the cp command, as it will show the timing and delays e.g. $ strace -o cp-strace.log cp ... I couldn't run strace on the Cygwin command because the issue is really intermittent. I did have another Cygwin cmd, 'mv', that was hung so I ran the commands below on the file

Re: Cygwin 'cp' command is still slow after Cygserver is installed

2023-04-12 Thread Brian Inglis via Cygwin
lists with many unique ACEs that need looked up on AD, and/or slow ADCs, and/or slow AV, and/or slow net: for each file show the outputs of $ ls -dl $f $ getfacl $f $ icacls "`cygpath -m $f`" and also attach as text, the output from strace on the cp command, as it

RE: Cygwin 'cp' command is still slow after Cygserver is installed

2023-04-12 Thread Derek Pagel via Cygwin
how big are these files and from where to where are you copying them ? AV interference ? The files being copied are not very big at all and they're just being copied from one directory to another on the same server. -- Problem reports: https://cygwin.com/problems.html FAQ:

Re: Cygwin 'cp' command is still slow after Cygserver is installed

2023-04-11 Thread marco atzeri via Cygwin
helped to lessen > the number of times that the issue happens but it didn't get rid of it. I'm > wondering if anyone has run into the same behavior. I've also shared the .dmp > files of a 'cp' command that was taking a while to complete in case that > helps:

Cygwin 'cp' command is still slow after Cygserver is installed

2023-04-11 Thread Derek Pagel via Cygwin
rid of it. I'm wondering if anyone has run into the same behavior. I've also shared the .dmp files of a 'cp' command that was taking a while to complete in case that helps: cp.dmp Microsoft (R) Windows Debugger Version 10.0.22621.755 AMD64 Copyright (c) Microsoft Co

Re: command please help me

2023-03-24 Thread Mark Hansen via Cygwin
On 3/24/2023 6:23 AM, blockold wolf uchiwa via Cygwin wrote: I don't know how to crack a .rar file please help me https://lmgtfy.app/#gsc.tab=0&gsc.q=RAR%20file%20extractor -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:

command please help me

2023-03-24 Thread blockold wolf uchiwa via Cygwin
I don't know how to crack a .rar file please help me -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple

RE: [EXTERNAL] Re: cygwin1.dll calls assert before cygwin command hangs

2023-03-23 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin
> Sorry, the second gdb command should be > info line *__assert+0x42a4 > > (Note the change in symbol name: two "_" there) > I think it'd be easier to "catch" the problem rather than to chase it by running all commands under the debugger. For that

Re: cygwin1.dll calls assert before cygwin command hangs

2023-03-23 Thread Mark Geisert via Cygwin
Sorry, the second gdb command should be info line *__assert+0x42a4 (Note the change in symbol name: two "_" there) ..mark -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html U

Re: cygwin1.dll calls assert before cygwin command hangs

2023-03-23 Thread Mark Geisert via Cygwin
se? More below... Stack Trace: Child cmd.exe -> cp.exe -> cmd.exe -> cp.exe: How exactly are you running Cygwin commands? From a Command Prompt or a bash shell, for instance? And how do you get the process tree you are indicating? What is the 'cp' command doing? Pas

cygwin1.dll calls assert before cygwin command hangs

2023-03-23 Thread Derek Pagel via Cygwin
We've had problems with slow Cygwin commands, so we were able to capture a stack trace when the 'cp' program taking a long time to complete, and we noticed in the stack trace that the last thing cygwin1.dll does is calls assert. What might that suggest? And are there any situations that would ca

Re: exe in path directory, "command not found"

2023-03-15 Thread Sam Edge via Cygwin
On 15/03/2023 03:00, WyntrHeart via Cygwin wrote: I've added /cygdrive/c/program\ files/notepad++ to my path in .bash_profile, double checking with echo to make sure that the directory is in the path. But when I type "notepad++.exe" or "notepad++" I get "bash: no

Re: exe in path directory, "command not found"

2023-03-14 Thread René Berber via Cygwin
On 3/14/2023 9:00 PM, WyntrHeart via Cygwin wrote: I've added /cygdrive/c/program\ files/notepad++ Notepad is not there. In addition to what Elliot said you need the correct path. The executable is at: /cygdrive/c/Program Files/Notepad++/notepad++ So the path is all that except the .exe nam

Re: exe in path directory, "command not found"

2023-03-14 Thread Eliot Moss via Cygwin
On 3/14/2023 11:00 PM, WyntrHeart via Cygwin wrote: I've added /cygdrive/c/program\ files/notepad++ to my path in .bash_profile, double checking with echo to make sure that the directory is in the path. But when I type "notepad++.exe" or "notepad++" I get "bash

exe in path directory, "command not found"

2023-03-14 Thread WyntrHeart via Cygwin
I've added /cygdrive/c/program\ files/notepad++ to my path in .bash_profile, double checking with echo to make sure that the directory is in the path. But when I type "notepad++.exe" or "notepad++" I get "bash: notepad++: command not found". I did restart

Re: Resizing window while showing git log locks up Command Line

2022-12-22 Thread Takashi Yano via Cygwin
t it un-hung. Typing > > > > q does nothing. Typing Ctrl+C does nothing. Typing does > > > > nothing. > The only way out of this is to close the terminal window and > > > > start a new Command Prompt or PowerShell session. > > > > > > > >

Re: Resizing window while showing git log locks up Command Line

2022-12-22 Thread Takashi Yano via Cygwin
q to exit. > > > Press Win+Left-Arrow to snap the window to the left side of the screen. > > > The window is now hung. Nothing can be typed to get it un-hung. Typing q > > > does nothing. Typing Ctrl+C does nothing. Typing does nothing. > > > > The only way o

Re: Resizing window while showing git log locks up Command Line

2022-12-21 Thread Adam Dinwoodie via Cygwin
ow hung. Nothing can be typed to get it un-hung. Typing q > > does nothing. Typing Ctrl+C does nothing. Typing does nothing. > > > The only way out of this is to close the terminal window and start a new > > Command Prompt or PowerShell session. > > > > I'

Resizing window while showing git log locks up Command Line

2022-12-21 Thread Gregory Mason via Cygwin
ng. > The only > way out of this is to close the terminal window and start a new Command > Prompt or PowerShell session. > > I've reproduced this with Command Line and with PowerShell 7.2.6. I am also experiencing this issue with the following setup: CYGWIN_NT-10.0-19044 version

Re: [BUG core?] Regression with parsing Windows’ command-line

2022-12-03 Thread Corinna Vinschen via Cygwin
On Dec 3 16:24, Corinna Vinschen via Cygwin wrote: > On Dec 3 19:28, Takashi Yano via Cygwin wrote: > > On Fri, 2 Dec 2022 19:40:30 -0800 > > Ilya Zakharevich wrote: > > > On Wed, Nov 16, 2022 at 04:48:25AM -0800, I wrote: > > > > De-quoting (converting the

Re: [BUG core?] Regression with parsing Windows’ command-line

2022-12-03 Thread Corinna Vinschen via Cygwin
On Dec 3 22:42, Takashi Yano via Cygwin wrote: > [...] > The patch above also affects __C_locale. > The patch below should be more appropriate. Looks like we had the same idea at the same time :) Corinna -- Problem reports: https://cygwin.com/problems.html FAQ: https://

Re: [BUG core?] Regression with parsing Windows’ command-line

2022-12-03 Thread Corinna Vinschen via Cygwin
On Dec 3 19:28, Takashi Yano via Cygwin wrote: > On Fri, 2 Dec 2022 19:40:30 -0800 > Ilya Zakharevich wrote: > > On Wed, Nov 16, 2022 at 04:48:25AM -0800, I wrote: > > > De-quoting (converting the Windows’ command-line into argc/argv) does > > > not remove double qu

Re: [BUG core?] Regression with parsing Windows’ command-line

2022-12-03 Thread Takashi Yano via Cygwin
On Sat, 3 Dec 2022 19:28:10 +0900 Takashi Yano wrote: > On Fri, 2 Dec 2022 19:40:30 -0800 > Ilya Zakharevich wrote: > > On Wed, Nov 16, 2022 at 04:48:25AM -0800, I wrote: > > > De-quoting (converting the Windows’ command-line into argc/argv) does > > > not remove d

Re: [BUG core?] Regression with parsing Windows’ command-line

2022-12-03 Thread Takashi Yano via Cygwin
On Fri, 2 Dec 2022 19:40:30 -0800 Ilya Zakharevich wrote: > On Wed, Nov 16, 2022 at 04:48:25AM -0800, I wrote: > > De-quoting (converting the Windows’ command-line into argc/argv) does > > not remove double quotes if characters not fit for 8-bit (?) are present. > > > &g

  1   2   3   4   5   6   7   8   9   10   >