Re: bash hangs when executing a script with a here document larger than 64 KiB

2025-10-05 Thread Jakob Bohm via Cygwin
} `make` runs this as `psize.aux | sleep 3` which gives plenty of time to fill the pipe before getting SIGPIPE when it outputs how much it has written. To see what goes wrong, first build psize.exe:- | gcc psize.c -g3 -gdwarf-5 -o psize Now run psize with a longer sleep time so you can attach gdb to

Re: bash hangs when executing a script with a here document larger than 64 KiB

2025-09-18 Thread Brian Inglis via Cygwin
On 2025-09-18 13:09, Bruno Haible via Cygwin wrote: Please, can you handle this bug report, specific to Cygwin? The GNU bash maintainer cannot reproduce it, as he doesn't use Cygwin. https://lists.gnu.org/archive/html/bug-bash/2025-09/msg00186.html Confirm it hangs in bash but not with dash/as

bash hangs when executing a script with a here document larger than 64 KiB

2025-09-18 Thread Bruno Haible via Cygwin
Please, can you handle this bug report, specific to Cygwin? The GNU bash maintainer cannot reproduce it, as he doesn't use Cygwin. https://lists.gnu.org/archive/html/bug-bash/2025-09/msg00186.html -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.c

Re: cygrunsrv: Run script when service should be stopped ?

2025-08-12 Thread Brian Inglis via Cygwin
On 2025-08-12 10:34, Roland Mainz via Cygwin wrote: Is there any example for cygrunsrv to run a (cleanup) dash/bash script when a Win32 service (set up via cygrunsrv) gets stopped ? I am unaware of any possible Windows shutdown dependency options desktop users can access, and any service

cygrunsrv: Run script when service should be stopped ?

2025-08-12 Thread Roland Mainz via Cygwin
Hi! - Is there any example for cygrunsrv to run a (cleanup) dash/bash script when a Win32 service (set up via cygrunsrv) gets stopped ? Bye, Roland -- __ . . __ (o.\ \/ /.o) roland.ma...@nrubsig.org \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix prog

Windows 11 ARM64 qemu test script... / was: Re: Cygwin AArch64 testing with Windows AArch64 on qemu?

2025-06-17 Thread Roland Mainz via Cygwin
On Tue, Jun 17, 2025 at 9:57 AM Sebastian Feld via Cygwin wrote: > Now that Microsoft is porting Cygwin to Aarch64: > > Do you know how to run Windows Aarch64 in qemu, so people can test > Cygwin Aarch64 changes? I use this script for Windows 11 experiments (same as https://nrubsi

Re: Modify bash shell script so it runs in elevated admin mode on Win explorer double click?

2025-04-13 Thread Andrey Repin via Cygwin
Greetings, Jeremy Drake! > On Fri, 11 Apr 2025, Andrey Repin via Cygwin wrote: >> Though, I'm using takecommand's free runtime (TCC-RT), which has an explicit >> START /ELEVATED command, and I'm using a wrapper for such tasks. > cygutils' > cygstart -a runas /bin/bash ... ? runas is not necessa

Re: Modify bash shell script so it runs in elevated admin mode on Win explorer double click?

2025-04-11 Thread Jeremy Drake via Cygwin
On Fri, 11 Apr 2025, Andrey Repin via Cygwin wrote: > Though, I'm using takecommand's free runtime (TCC-RT), which has an explicit > START /ELEVATED command, and I'm using a wrapper for such tasks. cygutils' cygstart -a runas /bin/bash ... ? -- Problem reports: https://cygwin.com/problems.

Re: Modify bash shell script so it runs in elevated admin mode on Win explorer double click?

2025-04-11 Thread Brian Inglis via Cygwin
On 2025-04-11 14:11, Backwoods BC wrote: On Fri, Apr 11, 2025 at 9:32 AM Brian Inglis via Cygwin wrote: On 2025-04-11 10:21, Mark Liam Brown via Cygwin wrote: Greetings! How can I modify a Cygwin bash script so it runs in elevated Administrator mode when someone double-clicks it in Windows

Re: Modify bash shell script so it runs in elevated admin mode on Win explorer double click?

2025-04-11 Thread Brian Inglis via Cygwin
On 2025-04-11 10:46, Mark Liam Brown via Cygwin wrote: On Fri, Apr 11, 2025 at 6:32 PM Brian Inglis via Cygwin wrote: On 2025-04-11 10:21, Mark Liam Brown via Cygwin wrote: Greetings! How can I modify a Cygwin bash script so it runs in elevated Administrator mode when someone double-clicks

Re: Modify bash shell script so it runs in elevated admin mode on Win explorer double click?

2025-04-11 Thread Backwoods BC via Cygwin
On Fri, Apr 11, 2025 at 9:32 AM Brian Inglis via Cygwin wrote: > > On 2025-04-11 10:21, Mark Liam Brown via Cygwin wrote: > > Greetings! > > > > How can I modify a Cygwin bash script so it runs in elevated > > Administrator mode when someone double-clicks it in Wind

Re: Modify bash shell script so it runs in elevated admin mode on Win explorer double click?

2025-04-11 Thread Andrey Repin via Cygwin
Greetings, Mark Liam Brown! > How can I modify a Cygwin bash script so it runs in elevated > Administrator mode when someone double-clicks it in Windows Explorer? Add a block that runs an admin only command and check for exit code. The `net session` or `openfiles` commands are a good can

Re: Modify bash shell script so it runs in elevated admin mode on Win explorer double click?

2025-04-11 Thread Mark Liam Brown via Cygwin
On Fri, Apr 11, 2025 at 6:32 PM Brian Inglis via Cygwin wrote: > > On 2025-04-11 10:21, Mark Liam Brown via Cygwin wrote: > > Greetings! > > > > How can I modify a Cygwin bash script so it runs in elevated > > Administrator mode when someone double-clicks it in Wind

Re: Modify bash shell script so it runs in elevated admin mode on Win explorer double click?

2025-04-11 Thread Brian Inglis via Cygwin
On 2025-04-11 10:21, Mark Liam Brown via Cygwin wrote: Greetings! How can I modify a Cygwin bash script so it runs in elevated Administrator mode when someone double-clicks it in Windows Explorer? Use a Run as admin shortcut? -- Take care. Thanks, Brian Inglis Calgary, Alberta

Modify bash shell script so it runs in elevated admin mode on Win explorer double click?

2025-04-11 Thread Mark Liam Brown via Cygwin
Greetings! How can I modify a Cygwin bash script so it runs in elevated Administrator mode when someone double-clicks it in Windows Explorer? Mark -- IT Infrastructure Consultant Windows, Linux -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com

Re: Chrootdirectory / Chroot - not working in OpenSSH sftp directives in \etc\sshd_config or using a custom shell script - MS OpenSSH build has a workaround

2025-03-12 Thread Corinna Vinschen via Cygwin
On Mar 12 06:40, Peter Board via Cygwin wrote: > Hi Cygwin Developers, > > In the source code for the session.c Cygwin is using the standard > OpenSSH source code, which checks for both the user ID of 0 and a > permissions for who can write to the new folder. > Chroot mounting test that I can't ge

Chrootdirectory / Chroot - not working in OpenSSH sftp directives in \etc\sshd_config or using a custom shell script - MS OpenSSH build has a workaround

2025-03-12 Thread Peter Board via Cygwin
Hi Cygwin Developers, In the source code for the session.c Cygwin is using the standard OpenSSH source code, which checks for both the user ID of 0 and a permissions for who can write to the new folder. Chroot mounting test that I can't get Cygwin to pass if (st.st_uid != 0 || (st.st_mode & 022)

Re: Anomaly in CRON execution of shell script

2024-12-29 Thread Chris Elvidge via Cygwin
On 29/12/2024 at 00:20, Takashi Yano via Cygwin wrote: On Sat, 28 Dec 2024 17:07:10 + Chris Elvidge wrote: I have a directory of files that I need the contained executables run from CRON. (Like run-parts.) I have found that since 25/12/2024, when run from CRON, it doesn't differentiate betw

Re: Anomaly in CRON execution of shell script

2024-12-28 Thread Takashi Yano via Cygwin
On Sat, 28 Dec 2024 17:07:10 + Chris Elvidge wrote: > I have a directory of files that I need the contained executables run > from CRON. (Like run-parts.) > > I have found that since 25/12/2024, when run from CRON, it doesn't > differentiate between executable and non-executable files. I.e.

Anomaly in CRON execution of shell script

2024-12-28 Thread Chris Elvidge via Cygwin
I have a directory of files that I need the contained executables run from CRON. (Like run-parts.) I have found that since 25/12/2024, when run from CRON, it doesn't differentiate between executable and non-executable files. I.e. tries to run the non-executables. It ran correctly on 24/12/2024

Running multiple instances of bash script fails

2024-06-28 Thread David Koski via Cygwin
I developed a bash script to get SMART stats from hard drives and it has been working with success for years.  It is working for both Linux and Windows using Cygwin.  Recently I ran into a new installation of this script on a Server 2022 Standard host and found it failed.  On closer

Re: Chromedriver does not launch from python 3.9 script

2024-01-20 Thread Marco Atzeri via Cygwin
On 20/01/2024 21:26, James via Cygwin wrote: Latest version of Cygwin installed and updated. I'm trying to run this python script which uses chromium in order to execute. I got it all installed, and I'm just now trying to run the script and login, but it keeps saying it canno

Chromedriver does not launch from python 3.9 script

2024-01-20 Thread James via Cygwin
Latest version of Cygwin installed and updated. I'm trying to run this python script which uses chromium in order to execute. I got it all installed, and I'm just now trying to run the script and login, but it keeps saying it cannot find the chromedriver.exe. But the file exists

Re: Running bash script as SYSTEM from account with admin rights?

2023-09-22 Thread Brian Inglis via Cygwin
On 2023-09-22 06:39, Christian Franke via Cygwin wrote: Martin Wege via Cygwin wrote: On Fri, Sep 22, 2023 at 9:42 AM Christian Franke via Cygwin wrote: Martin Wege via Cygwin wrote: Hello, Does Cygwin have a tool to run a bash script as SYSTEM user if my account already have admin rights

Re: Running bash script as SYSTEM from account with admin rights?

2023-09-22 Thread Christian Franke via Cygwin
Martin Wege via Cygwin wrote: On Fri, Sep 22, 2023 at 9:42 AM Christian Franke via Cygwin wrote: Martin Wege via Cygwin wrote: Hello, Does Cygwin have a tool to run a bash script as SYSTEM user if my account already have admin rights? No (AFAIK). I use psexec from Sysinternals tools (https

Re: Running bash script as SYSTEM from account with admin rights?

2023-09-22 Thread Martin Wege via Cygwin
On Fri, Sep 22, 2023 at 9:42 AM Christian Franke via Cygwin wrote: > > Martin Wege via Cygwin wrote: > > Hello, > > > > Does Cygwin have a tool to run a bash script as SYSTEM user if my > > account already have admin rights? > > No (AFAIK). > > I u

Re: Running bash script as SYSTEM from account with admin rights?

2023-09-22 Thread Christian Franke via Cygwin
Martin Wege via Cygwin wrote: Hello, Does Cygwin have a tool to run a bash script as SYSTEM user if my account already have admin rights? No (AFAIK). I use psexec from Sysinternals tools (https://learn.microsoft.com/sysinternals/downloads/psexec) This starts a Cygwin terminal as SYSTEM

Running bash script as SYSTEM from account with admin rights?

2023-09-21 Thread Martin Wege via Cygwin
Hello, Does Cygwin have a tool to run a bash script as SYSTEM user if my account already have admin rights? Thanks, Martin -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info

Re: Test for Windows Administrator permissions from Cygwin terminal|script?

2023-08-25 Thread Corinna Vinschen via Cygwin
On Aug 24 18:24, Martin Wege via Cygwin wrote: > On Sat, Aug 19, 2023 at 10:15 AM ASSI via Cygwin wrote: > > > > Martin Wege via Cygwin writes: > > > How can I find out whether the current Cygwin terminal has > > > Administrator rights? I want to safeguard our admin scripts with a > > > simple tes

Re: Test for Windows Administrator permissions from Cygwin terminal|script?

2023-08-24 Thread Bill Stewart via Cygwin
On Thu, Aug 24, 2023 at 8:52 AM Bill Stewart wrote: On Thu, Aug 24, 2023 at 7:01 AM Andrew Schulman wrote: > > > How can I find out whether the current Cygwin terminal has >> > Administrator rights? I want to safeguard our admin scripts with a >> > simple test and bail out with an error if someone

Re: Test for Windows Administrator permissions from Cygwin terminal|script?

2023-08-24 Thread Martin Wege via Cygwin
On Sat, Aug 19, 2023 at 10:15 AM ASSI via Cygwin wrote: > > Martin Wege via Cygwin writes: > > How can I find out whether the current Cygwin terminal has > > Administrator rights? I want to safeguard our admin scripts with a > > simple test and bail out with an error if someone wants to do admin >

Re: Test for Windows Administrator permissions from Cygwin terminal|script?

2023-08-24 Thread Bill Stewart via Cygwin
On Thu, Aug 24, 2023 at 7:01 AM Andrew Schulman wrote: > How can I find out whether the current Cygwin terminal has > > Administrator rights? I want to safeguard our admin scripts with a > > simple test and bail out with an error if someone wants to do admin > > stuff (say: regtool) without admin

Re: Test for Windows Administrator permissions from Cygwin terminal|script?

2023-08-24 Thread Andrew Schulman via Cygwin
> Hello, > > How can I find out whether the current Cygwin terminal has > Administrator rights? I want to safeguard our admin scripts with a > simple test and bail out with an error if someone wants to do admin > stuff (say: regtool) without admin privileges. https://superuser.com/questions/66019

Re: Test for Windows Administrator permissions from Cygwin terminal|script?

2023-08-19 Thread Bill Stewart via Cygwin
On Sat, Aug 19, 2023 at 2:15 AM ASSI wrote: Windows really doesn't have a defined notion of what is or is not an > "administrator". Each particular definition will be insufficient or > invalid in certain contexts. > There is a definition of administrator in Windows: Your account is a member, eit

Re: Test for Windows Administrator permissions from Cygwin terminal|script?

2023-08-19 Thread ASSI via Cygwin
Martin Wege via Cygwin writes: > How can I find out whether the current Cygwin terminal has > Administrator rights? I want to safeguard our admin scripts with a > simple test and bail out with an error if someone wants to do admin > stuff (say: regtool) without admin privileges. Windows really doe

Re: Test for Windows Administrator permissions from Cygwin terminal|script?

2023-08-18 Thread Doug Henderson via Cygwin
On Thu, Aug 17, 2023 at 8:02 PM Martin Wege via Cygwin wrote: > How can I find out whether the current Cygwin terminal has > Administrator rights? I want to safeguard our admin scripts with a > simple test and bail out with an error if someone wants to do admin > stuff (say: regtool) without admin

Re: Test for Windows Administrator permissions from Cygwin terminal|script?

2023-08-18 Thread Mark Geisert via Cygwin
Mark Geisert via Cygwin wrote: Backwoods BC via Cygwin wrote: [...] I don't know if this is the official method, but it works for me: # Shell Options # Elevated privilege windows have $SESSIONNAME set if [ "$SESSIONNAME" == "" ] ;then    printf -v adminPmt '[\u2022Admin\u2022] ' else    ex

Re: Test for Windows Administrator permissions from Cygwin terminal|script?

2023-08-18 Thread Mark Geisert via Cygwin
Backwoods BC via Cygwin wrote: On Thu, Aug 17, 2023 at 7:01 PM Martin Wege via Cygwin wrote: How can I find out whether the current Cygwin terminal has Administrator rights? I want to safeguard our admin scripts with a simple test and bail out with an error if someone wants to do admin stuff (s

Re: Test for Windows Administrator permissions from Cygwin terminal|script?

2023-08-17 Thread Backwoods BC via Cygwin
On Thu, Aug 17, 2023 at 7:01 PM Martin Wege via Cygwin wrote: > How can I find out whether the current Cygwin terminal has > Administrator rights? I want to safeguard our admin scripts with a > simple test and bail out with an error if someone wants to do admin > stuff (say: regtool) without admin

Test for Windows Administrator permissions from Cygwin terminal|script?

2023-08-17 Thread Martin Wege via Cygwin
Hello, How can I find out whether the current Cygwin terminal has Administrator rights? I want to safeguard our admin scripts with a simple test and bail out with an error if someone wants to do admin stuff (say: regtool) without admin privileges. Thanks, Martin -- Problem reports: https:/

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: bash shell script: recently running, now failing

2023-04-08 Thread Andrey Repin via Cygwin
Greetings, Brian Inglis via Cygwin! > On 2023-04-06 06:21, Andrey Repin via Cygwin wrote: >>> I have a "hash bang" bash shell script i.e. first line >>> #! /bin/sh >>> or equivalently >>> #! /bin/bash >> By default, sh is bash in base Cygwin

Re: bash shell script: recently running, now failing

2023-04-07 Thread Brian Inglis via Cygwin
On 2023-04-06 06:21, Andrey Repin via Cygwin wrote: I have a "hash bang" bash shell script i.e. first line #! /bin/sh or equivalently #! /bin/bash By default, sh is bash in base Cygwin installation. Q3 - at 1/8 the size of bash and sh, I am not at all sure of the role and reac

Re: bash shell script: recently running, now failing

2023-04-06 Thread Scott Smith via Cygwin
rl, C, text tools, etc - had to be tested and usage adjusted accordingly. It wasn't uncommon to have a starter script that performed compatibility tests and forked to the appropriate version... of the same code, functionally. Back to the OP's problem. I haven't seen the bash sou

Re: bash shell script: recently running, now failing

2023-04-06 Thread Adam Dinwoodie via Cygwin
On Thu, Apr 06, 2023 at 04:43:51AM +, Fergus Daly via Cygwin wrote: > I have a "hash bang" bash shell script i.e. first line > #! /bin/sh > or equivalently > #! /bin/bash > For various reasons I want this file to be identified as binary so its second > line > is

Re: bash shell script: recently running, now failing

2023-04-06 Thread Andrey Repin via Cygwin
Greetings, Fergus Daly! > I have a "hash bang" bash shell script i.e. first line > #! /bin/sh > or equivalently > #! /bin/bash By default, sh is bash in base Cygwin installation. > Q3 - at 1/8 the size of bash and sh, I am not at all sure of the role and > reac

Re: bash shell script: recently running, now failing

2023-04-06 Thread Scott Smith via Cygwin
Place the nul on the third line. For example: #!/bin/bash # # ^@ identify as a binary file ... On Thu, Apr 6, 2023 at 4:03 AM Corinna Vinschen via Cygwin < cygwin@cygwin.com> wrote: > On Apr 6 04:43, Fergus Daly via Cygwin wrote: > > I have a "hash bang" bash she

Re: bash shell script: recently running, now failing

2023-04-06 Thread Corinna Vinschen via Cygwin
On Apr 6 04:43, Fergus Daly via Cygwin wrote: > I have a "hash bang" bash shell script i.e. first line > #! /bin/sh > or equivalently > #! /bin/bash > For various reasons I want this file to be identified as binary so its second > line > is the single charact

bash shell script: recently running, now failing

2023-04-05 Thread Fergus Daly via Cygwin
I have a "hash bang" bash shell script i.e. first line #! /bin/sh or equivalently #! /bin/bash For various reasons I want this file to be identified as binary so its second line is the single character null \x00 showing up in some editors e.g. nano as ^@ This does not prevent the s

Re: Setup reinstall incomplete script does nothing

2023-02-06 Thread Jon Turney via Cygwin
On 02/02/2023 22:42, Brian Inglis via Cygwin wrote: Hi folks, Using previously posted reinstall incomplete packages script as a number of my packages are now flagged Incomplete. The script now seems to do nothing to any package as setup comes up with a blank list of packages. Also tried a

Setup reinstall incomplete script does nothing

2023-02-02 Thread Brian Inglis via Cygwin
Hi folks, Using previously posted reinstall incomplete packages script as a number of my packages are now flagged Incomplete. The script now seems to do nothing to any package as setup comes up with a blank list of packages. Also tried a number of variations including shell script invocations

Re: RE: [EXTERNAL] [BULK] Re: Internal Server Error running perl script in browser

2022-11-17 Thread René Berber
, see perl -V for more detail) Copyright 1987-2021, Larry Wall [snip] That is Cygwin's perl, but... $ which perl /usr/local/bin/perl That is not the same. The first one is at /usr/bin/perl. And your PATH correctly leads to it. Your problem is the script, which explicitly calls the 2nd

RE: [EXTERNAL] [BULK] Re: Internal Server Error running perl script in browser

2022-11-17 Thread Michael Lascuola via Cygwin
nternal Server Error running perl script in browser WARNING: This email originated outside of the Salina Regional Health Center email system. DO NOT CLICK links or attachments unless you recognize the sender and know the content is safe. On 11/17/2022 10:22 AM, Michael Lascuola via Cygwin wrote: &g

Re: Internal Server Error running perl script in browser

2022-11-17 Thread René Berber
On 11/17/2022 10:22 AM, Michael Lascuola via Cygwin wrote: Good day! I have an issue where I receive "Internal Server Error" when running perl scripts in the browser. Here's an example script that works OK when running from the Cygwin Terminal: #!/usr/local/bin/perl Tha

Internal Server Error running perl script in browser

2022-11-17 Thread Michael Lascuola via Cygwin
Good day! I have an issue where I receive "Internal Server Error" when running perl scripts in the browser. Here's an example script that works OK when running from the Cygwin Terminal: #!/usr/local/bin/perl use DBI; my @ary = DBI->available_drivers(); print @ary; print

Re: cygwin update, gvim 8.2. file type plugin, perl script error

2022-07-19 Thread Gary Johnson
On 2022-07-19, Kutty, Rejeesh wrote: > Hi, > > I recently ran the installer and it updated vim to 8.2 > > :version > VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Feb 13 2022 22:00:24) > Included patches: 1-4372 > > > Now when I open a perl script, I get the f

cygwin update, gvim 8.2. file type plugin, perl script error

2022-07-19 Thread Kutty, Rejeesh
Hi, I recently ran the installer and it updated vim to 8.2 :version VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Feb 13 2022 22:00:24) Included patches: 1-4372 Now when I open a perl script, I get the following message: Command terminated Error detected while processing BufRead Autocommands

Re: Previously-functional gawk script now failing to execute - PLEASE HELP!!!

2021-09-15 Thread Brian Inglis
On 2021-09-15 15:11, Bryan VanSchouwen via Cygwin wrote: I just tried executing an old, previously-functional awk script using a version of gawk that I had downloaded last year, and a command of the following format (as recommended in a previous communication with the Cygwin mailing list): gawk

Re: Previously-functional gawk script now failing to execute - PLEASE HELP!!!

2021-09-15 Thread Lee via Cygwin
On 9/15/21, Bryan VanSchouwen via Cygwin wrote: > Hello. > > I just tried executing an old, previously-functional awk script using a > version of gawk that I had downloaded last year, and a command of the > following format (as recommended in a previous communication with the > C

Previously-functional gawk script now failing to execute - PLEASE HELP!!!

2021-09-15 Thread Bryan VanSchouwen via Cygwin
Hello. I just tried executing an old, previously-functional awk script using a version of gawk that I had downloaded last year, and a command of the following format (as recommended in a previous communication with the Cygwin mailing list): gawk -vRS="\r\n" -f data_collect_e_-_FF_4-sta

Re: Previously-functional gawk script now failing to execute - PLEASE HELP!!!

2021-09-15 Thread Eliot Moss
On 9/15/2021 5:11 PM, Bryan VanSchouwen via Cygwin wrote: Hello. I just tried executing an old, previously-functional awk script using a version of gawk that I had downloaded last year, and a command of the following format (as recommended in a previous communication with the Cygwin mailing

Re: Previously-functional gawk script now failing to execute - PLEASE HELP!!!

2021-09-15 Thread Bill Stewart
On Wed, Sep 15, 2021 at 3:11 PM Bryan VanSchouwen wrote: WHAT THE HECK IS GOING ON WITH THIS SOFTWARE?! > I don't know what the technical problem is, but I would politely point out: 1. Typing things in all caps is considered shouting 2. Shouting at the people who might be able to help you is p

Previously-functional gawk script now failing to execute - PLEASE HELP!!!

2021-09-15 Thread Bryan VanSchouwen via Cygwin
Hello. I just tried executing an old, previously-functional awk script using a version of gawk that I had downloaded last year, and a command of the following format (as recommended in a previous communication with the Cygwin mailing list): gawk -vRS="\r\n" -f data_collect_e_-_FF_4-sta

Re: Postinstall script errors for man* packages

2021-01-04 Thread Achim Gratz
Allen Hewes via Cygwin writes: > I think the recent man* package update has an issue in the postinstall script: Yes, the script got broken when it was generated for packaging. It's hopefully fixed now. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda

Postinstall script errors for man* packages

2021-01-04 Thread Allen Hewes via Cygwin
Hi, I think the recent man* package update has an issue in the postinstall script: Postinstall script errors Package: z/Perpetual zp_man-db-update-index.dash exit code 2 $ /etc/postinstall/zp_man-db-update-index.dash /etc/postinstall/zp_man-db-update-index.dash: line 4: syntax error near

Re: cygwin-doc post install script failures

2020-12-16 Thread Brian Inglis
On 2020-12-15 13:51, Marco Atzeri via Cygwin wrote: On 15.12.2020 21:03, Brian Inglis wrote: On 2020-12-15 01:43, Marco Atzeri via Cygwin wrote: Not a recent bug but annoying anyway It seems the post-install script is not considering that the installation can be in a disk different from C

Re: cygwin-doc post install script failures

2020-12-15 Thread Marco Atzeri via Cygwin
On 15.12.2020 21:03, Brian Inglis wrote: On 2020-12-15 01:43, Marco Atzeri via Cygwin wrote: Not a recent bug but annoying anyway It seems the post-install script is not considering that the installation can be in a disk different from C: , properly in this case D: The post-install script

Re: cygwin-doc post install script failures

2020-12-15 Thread Brian Inglis
On 2020-12-15 01:43, Marco Atzeri via Cygwin wrote: Not a recent bug but annoying anyway It seems the post-install script is not considering that the installation can be in a disk different from C: , properly in this case D: The post-install script does not care as mkshortcut uses POSIX paths

cygwin-doc post install script failures

2020-12-15 Thread Marco Atzeri via Cygwin
Not a recent bug but annoying anyway It seems the post-install script is not considering that the installation can be in a disk different from C: , properly in this case D: 2020/12/15 08:40:13 running: d:\cygwin32\bin\bash.exe --norc --noprofile "/etc/postinstall/cygwin-doc.sh"

Re: Error: "-gThe system cannot find the file specified." When bash script containing "cut" is run from cmd

2020-10-31 Thread Matt D. via Cygwin
Please ignore this. There was an error in my test case. -- 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

Error: "-gThe system cannot find the file specified." When bash script containing "cut" is run from cmd

2020-10-31 Thread Matt D. via Cygwin
Simple Bash script: > #!/bin/bash > > cut Save as "testme.sh" in C:\ or elsewhere. Open a Windows command prompt and type: > cmd /c bash -c /c/testme.sh I get the following error: > -gThe system cannot find the file specified. This only seems to trigger when b

Re: configure script fails during install (Setup Ver 2.897 (64 bit))

2019-11-04 Thread Hans-Bernhard Bröker
B db.h version >= 4.1 ... no (version numbers not > found) > configure: error: Berkeley DB db.h is missing or has incompatible version No, that does not mean that the configure script failed. It means the configure script determined that your build machine lacks some capabilities this p

Re: configure script fails during install (Setup Ver 2.897 (64 bit))

2019-11-03 Thread Brian Inglis
ttp%3a%2f%2fcygwin.mirror.constant.com%2f > -rwxrwx---+ 1 lkclooney lkclooney 1225235 > Nov 3 11:54 setup-x86_64.exe > The video instructs the user to execute the cygwin install configure script > in gnu-cobol-1.1 directory. > lkclooney@CLO

configure script fails during install (Setup Ver 2.897 (64 bit))

2019-11-03 Thread Lawrence Clooney
lkclooney lkclooney 1225235 Nov 3 11:54 setup-x86_64.exe The video instructs the user to execute the cygwin install configure script in gnu-cobol-1.1 directory. lkclooney@CLOONEY-1 /cygdrive/c/OC/gnu-cobol-1.1 $ ./configure checking for a BSD-compatible install... /usr/bin/install -c

Re: Re: shell script giving error message "No such file or directory" on cygwin 3.0.7-1

2019-09-27 Thread DynV Montrealer
extension .sh hoping to have that work as a shell script. I then input in the terminal the uncensored "./cygdrive/SHELL_SCRIPT_FULL_PATH" and got the uncensored version of "-bash: ./cygdrive/SHELL_SCRIPT_FULL_PATH: No such file or directory". Oh! And it likely is the right path a

Re: shell script giving error message "No such file or directory" on cygwin 3.0.7-1

2019-09-27 Thread Brian S. Wilson
L_PATH". I then copy-pasted it (from Cygwin64 >> Terminal) into a file I saved with the extension .sh hoping to have that >> work as a shell script. I then input in the terminal the uncensored >> "./cygdrive/SHELL_SCRIPT_FULL_PATH" and got the uncensored version o

Re: shell script giving error message "No such file or directory" on cygwin 3.0.7-1

2019-09-27 Thread Brian S. Wilson
L_PATH". I then copy-pasted it (from Cygwin64 >> Terminal) into a file I saved with the extension .sh hoping to have that >> work as a shell script. I then input in the terminal the uncensored >> "./cygdrive/SHELL_SCRIPT_FULL_PATH" and got the uncensored version o

Re: shell script giving error message "No such file or directory" on cygwin 3.0.7-1

2019-09-27 Thread Eliot Moss
ed to do a command that give the result I wanted (I've tested it successfully) ; its censored version is "sed -e 'WORKING_REGEX' -i /cygdrive/REGEX_FILE_FULL_PATH". I then copy-pasted it (from Cygwin64 Terminal) into a file I saved with the extension .sh hoping to have

Re: shell script giving error message "No such file or directory" on cygwin 3.0.7-1

2019-09-26 Thread Brian Inglis
ith the extension .sh hoping to have that > work as a shell script. I then input in the terminal the uncensored > "./cygdrive/SHELL_SCRIPT_FULL_PATH" and got the uncensored version of > "-bash: ./cygdrive/SHELL_SCRIPT_FULL_PATH: No such file or directory". Oh! > And it l

shell script giving error message "No such file or directory" on cygwin 3.0.7-1

2019-09-26 Thread DynV Montrealer
nted (I've tested it successfully) ; its censored version is "sed -e 'WORKING_REGEX' -i /cygdrive/REGEX_FILE_FULL_PATH". I then copy-pasted it (from Cygwin64 Terminal) into a file I saved with the extension .sh hoping to have that work as a shell script. I then input in the

Re: Request for an example x68 assembler portable Hello World script

2019-04-29 Thread Sam Habiel
I frequently cannot contribute discussion to Cygwin topics, but due to my work porting a database (fis-gtm) to Cygwin, I can chime in here. This is a good article to give you an overview of the different calling conventions out there: https://eli.thegreenplace.net/2011/09/06/stack-frame-layout-on-

Re: Request for an example x68 assembler portable Hello World script

2019-04-28 Thread Eliot Moss
On 4/26/2019 5:04 PM, Jesse Thompson wrote: Ultimately what I am trying to research is how to begin building a simple compilation system of my own, so how do the *makers* of compilers deal with these differences in calling convention? They make parts of the compilers conditional on the overall

Re: Request for an example x68 assembler portable Hello World script

2019-04-27 Thread bzs
Just two thoughts: 1. You probably know that 'cc -S foo.c' produces foo.s which is the assembler output. Might be worthwhile examining how the experts who wrote the C compiler handle all this. The output is usually quite readable for someone prone to reading such things. 2. Rather than generati

Re: Request for an example x68 assembler portable Hello World script

2019-04-26 Thread Doug Henderson
On Fri, 26 Apr 2019 at 15:04, Jesse Thompson <> wrote: > > > From: Eliot Moss <> > > To: cygwin@cygwin.com > > Date: Fri, 26 Apr 2019 07:16:38 -0400 > > Subject: Re: Request for an example x68 assembler portable Hello World > Ultimately what I am trying to research is how to begin building a simp

Re: Request for an example x68 assembler portable Hello World script

2019-04-26 Thread Jesse Thompson
> From: Eliot Moss > To: cygwin@cygwin.com > Date: Fri, 26 Apr 2019 07:16:38 -0400 > Subject: Re: Request for an example x68 assembler portable Hello World script > > Der Jesse -- Someone else may be able to speak to the specifics, but > register use and calling convention

Re: Request for an example x68 assembler portable Hello World script

2019-04-26 Thread Eliot Moss
On 4/26/2019 3:25 AM, Jesse Thompson wrote: I would like to learn how to write assembly programs for the command line that with as little alteration as is feasable will compile both in Cygwin and in other flavors of Unix like Linux and/or FreeBSD. I am targeting only x64 CPUs and I'm perfectly h

Request for an example x68 assembler portable Hello World script

2019-04-26 Thread Jesse Thompson
I would like to learn how to write assembly programs for the command line that with as little alteration as is feasable will compile both in Cygwin and in other flavors of Unix like Linux and/or FreeBSD. I am targeting only x64 CPUs and I'm perfectly happy to use libc calls instead of direct sysca

Re: Cygwin bash script removing equal sign

2019-04-25 Thread Hans-Bernhard Bröker
Am 25.04.2019 um 18:11 schrieb Peter Palaparthy: > Cygwin bash script is removing equals sign from command call. On what basis did you conclude it was bash doing that, and not, say, make? > *Here is the relevant command in my makefile.* > *$(elabcmd) = $(XELAB_DEFAULT) \-generic VERSI

Re: Cygwin bash script removing equal sign

2019-04-25 Thread Eliot Moss
On 4/25/2019 12:11 PM, Peter Palaparthy wrote: Cygwin bash script is removing equals sign from command call. How do I escape it so that = is sent to command? I tried different things like escaping = with \ and enclosing it with "" and '' but none of them worked. *Here is

Cygwin bash script removing equal sign

2019-04-25 Thread Peter Palaparthy
Cygwin bash script is removing equals sign from command call. How do I escape it so that = is sent to command? I tried different things like escaping = with \ and enclosing it with "" and '' but none of them worked. *Here is the relevant command in my makefile.* *$(elabcm

Re: util-linux package missing usr/bin/script between 2.25 and 2.32

2019-03-05 Thread Brian Inglis
On 2019-03-03 14:48, Vince Rice wrote: >> On Mar 3, 2019, at 3:38 PM, Mason Giles wrote: >> The /usr/bin/script program seems to have gone missing from the util-linux >> package somewhere between the 2.25 and 2.32 timeframe. >> As far as I can tell this program is still in

Re: util-linux package missing usr/bin/script between 2.25 and 2.32

2019-03-03 Thread Vince Rice
> On Mar 3, 2019, at 3:38 PM, Mason Giles wrote: > > Hi, > > The /usr/bin/script program seems to have gone missing from the util-linux > package somewhere between the 2.25 and 2.32 timeframe. > > As far as I can tell this program is still included upstream (and the &g

util-linux package missing usr/bin/script between 2.25 and 2.32

2019-03-03 Thread Mason Giles
Hi, The /usr/bin/script program seems to have gone missing from the util-linux package somewhere between the 2.25 and 2.32 timeframe. As far as I can tell this program is still included upstream (and the util-linux package still contains its /usr/bin/scriptreplay counterpart). Any ideas what

Re: An increment to Jon Turney's stackdump2backtrace script

2018-10-04 Thread Mark Geisert
Jon Turney wrote: On 01/10/2018 10:20, Mark Geisert wrote: For those Cygwin developers who tend to attract stackdump files... ..mark (who defines an alias 'bt' to launch the script because he can't get gdb out of his head) Nice. Thanks. OTHERS=`ldd $IMG1 | awk '{print

Re: An increment to Jon Turney's stackdump2backtrace script

2018-10-03 Thread Jon Turney
On 01/10/2018 10:20, Mark Geisert wrote: For those Cygwin developers who tend to attract stackdump files... ..mark (who defines an alias 'bt' to launch the script because he can't get gdb out of his head) Nice. Thanks. OTHERS=`ldd $IMG1 | awk '{print $3}' | sort

An increment to Jon Turney's stackdump2backtrace script

2018-10-01 Thread Mark Geisert
For those Cygwin developers who tend to attract stackdump files... ..mark (who defines an alias 'bt' to launch the script because he can't get gdb out of his head) h/t to JT #!/bin/bash # # stackdump2backtrace (incremented) # Munges a Cygwin stackdump file into a

Re: Fails to launch batch script in some directories

2018-04-24 Thread Corinna Vinschen
On Apr 23 11:20, Brian Inglis wrote: > On 2018-04-23 02:44, Corinna Vinschen wrote: > > On Apr 23 08:43, David Macek wrote: > >> On 21. 4. 2018 17:38, Brian Inglis wrote: > >>> See my other post in this thread where strace shows @ handling is not > >>> i

Re: Fails to launch batch script in some directories

2018-04-23 Thread Brian Inglis
On 2018-04-23 02:44, Corinna Vinschen wrote: > On Apr 23 08:43, David Macek wrote: >> On 21. 4. 2018 17:38, Brian Inglis wrote: >>> See my other post in this thread where strace shows @ handling is not >>> involved, >>> as the script directory and name are

Re: Fails to launch batch script in some directories

2018-04-23 Thread Corinna Vinschen
On Apr 23 08:43, David Macek wrote: > On 21. 4. 2018 17:38, Brian Inglis wrote: > > See my other post in this thread where strace shows @ handling is not > > involved, > > as the script directory and name are normalized and converted to a win32 > > path > >

  1   2   3   4   5   6   7   8   9   10   >