Re: Cygwin bash package data?

2023-10-01 Thread Brian Inglis via Cygwin
On 2023-10-01 22:49, Cedric Blancher via Cygwin wrote: Where (URL!!) can I find the package config for the Cygwin bash package? On the Cygwin site, go to Search Packages, enter the package name, select a link to the package, select the package link at the top of that file list, select the

Cygwin bash package data?

2023-10-01 Thread Cedric Blancher via Cygwin
Good morning! Where (URL!!) can I find the package config for the Cygwin bash package? Ced -- Cedric Blancher [https://plus.google.com/u/0/+CedricBlancher/] Institute Pasteur -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation

Re: another question about cygwin bash trying to make connections

2020-01-08 Thread Brian Inglis
the original GNU bash source package against the copy included verbatim in the Cygwin source package as the build base; the hashes of the downloaded Cygwin bash source and binary packages against those in your latest downloaded setup.ini or the x86{,_64}/release/bash/sha512.sum file on your local mirror

Re: another question about cygwin bash trying to make connections

2020-01-07 Thread LMH
Marco Atzeri wrote: > Am 07.01.2020 um 21:58 schrieb LMH: >> Hello, >> >> >> This is the version of bash, >> >> GNU bash, version 4.3.42(4)-release (i686-pc-cygwin) >> >> it would be very helpful as a first step if I could find a verified digital >> signature >> for this version of bash. The index

Re: another question about cygwin bash trying to make connections

2020-01-07 Thread Marco Atzeri
Am 07.01.2020 um 21:58 schrieb LMH: Hello, This is the version of bash, GNU bash, version 4.3.42(4)-release (i686-pc-cygwin) it would be very helpful as a first step if I could find a verified digital signature for this version of bash. The index here, https://ftp.gnu.org/gnu/bash/ gives a

another question about cygwin bash trying to make connections

2020-01-07 Thread LMH
Hello, Every single time run bash in a terminal, I get the following firewall alerts, C:\cygwin\bin\bash.exe An attempt to communicate a foreign process has been detected. Target PID: 1616 Image Name: svchost.exe C:\cygwin\bin\bash.exe A potential threat to network traffic interception or inject

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: ssh login to cygwin bash?

2018-04-26 Thread Ulli Horlacher
On Thu 2018-03-29 (22:21), Marco Atzeri wrote: > as it seems you have not done so, likely you have another > ssh server than cygwin one running on your pc. Late feedback: this was the case! Thanks for the hint! I have now disabled the foreign sshd, reinstalled cygwin openssh server, opened port 2

Re: ssh login to cygwin bash?

2018-03-29 Thread Erik Soderquist
On Thu, Mar 29, 2018 at 4:17 PM, Brian Inglis wrote: >> I would actually like to know how you managed this, as I have a couple >> use cases where this is what I do need... > > W10 Developer mode installs and enables minimal MS SSH server for Settings > "Device discovery" mDNS service "SSDP Discover

Re: ssh login to cygwin bash?

2018-03-29 Thread Brian Inglis
On 2018-03-29 13:35, Ulli Horlacher wrote: > On Thu 2018-03-29 (13:00), Erik Soderquist wrote: >> On Thu, Mar 29, 2018 at 10:24 AM, Ulli Horlacher wrote: >>> I have installed cygwin openssh and the sshd is running. >>> When I log in, I get a "DOS shell": >>> ~: uname -a >>> CYGWIN_NT-6.1 WIN-LS0QDO

Re: ssh login to cygwin bash?

2018-03-29 Thread Marco Atzeri
On 29/03/2018 21:35, Ulli Horlacher wrote: On Thu 2018-03-29 (13:00), Erik Soderquist wrote: On Thu, Mar 29, 2018 at 10:24 AM, Ulli Horlacher wrote: I have installed cygwin openssh and the sshd is running. When I log in, I get a "DOS shell": ~: uname -a CYGWIN_NT-6.1 WIN-LS0QDOSDIBL 2.10.0(0

Re: ssh login to cygwin bash?

2018-03-29 Thread Brian Inglis
On 2018-03-29 11:00, Erik Soderquist wrote: > On Thu, Mar 29, 2018 at 10:24 AM, Ulli Horlacher wrote: >> >> I have installed cygwin openssh and the sshd is running. >> When I log in, I get a "DOS shell": >> >> ~: uname -a >> CYGWIN_NT-6.1 WIN-LS0QDOSDIBL 2.10.0(0.325/5/3) 2018-02-02 15:21 i686 Cygw

Re: ssh login to cygwin bash?

2018-03-29 Thread Ulli Horlacher
On Thu 2018-03-29 (13:00), Erik Soderquist wrote: > On Thu, Mar 29, 2018 at 10:24 AM, Ulli Horlacher wrote: > > > > > I have installed cygwin openssh and the sshd is running. > > When I log in, I get a "DOS shell": > > > > ~: uname -a > > CYGWIN_NT-6.1 WIN-LS0QDOSDIBL 2.10.0(0.325/5/3) 2018-02-02

Re: ssh login to cygwin bash?

2018-03-29 Thread Andrey Repin
Greetings, Ulli Horlacher! > I have installed cygwin openssh and the sshd is running. > When I log in, I get a "DOS shell": > ~: uname -a > CYGWIN_NT-6.1 WIN-LS0QDOSDIBL 2.10.0(0.325/5/3) 2018-02-02 15:21 i686 Cygwin > ~: ssh localhost > admin@localhost's password: > C:\users\admin> > But I wa

Re: ssh login to cygwin bash?

2018-03-29 Thread Erik Soderquist
On Thu, Mar 29, 2018 at 10:24 AM, Ulli Horlacher wrote: > > I have installed cygwin openssh and the sshd is running. > When I log in, I get a "DOS shell": > > ~: uname -a > CYGWIN_NT-6.1 WIN-LS0QDOSDIBL 2.10.0(0.325/5/3) 2018-02-02 15:21 i686 Cygwin > ~: ssh localhost > admin@localhost's password:

ssh login to cygwin bash?

2018-03-29 Thread Ulli Horlacher
I have installed cygwin openssh and the sshd is running. When I log in, I get a "DOS shell": ~: uname -a CYGWIN_NT-6.1 WIN-LS0QDOSDIBL 2.10.0(0.325/5/3) 2018-02-02 15:21 i686 Cygwin ~: ssh localhost admin@localhost's password: C:\users\admin> But I want bash as login shell. How can I configure

Re: Why does robocopy confuse input and output files defined with Cygwin/bash and perl?

2015-10-01 Thread cyg Simple
On 9/30/2015 3:27 PM, Andrey Repin wrote: > Greetings, Eliot Moss! > >> Dealing with "odd" characters like \ and such can be a pain, huh? >> Perhaps it will help you to know that bash will expand variables >> inside double-quoted arguments, i.e., "${src}". (You can write >> "$src" if you want, bu

Re: Cygwin bash for loops : repeated errors : [main] bash 1972 fork: child -1 - CreateProcessW failed for errno 9 bash: fork: Bad file descriptor

2015-10-01 Thread Vermessung AVT - Wolfgang Rieger
Hi Paul, I also get Bad File Descriptor errors, though in a quite different situation, see my recent topic "gawk: Bad File Descriptor error with concurrent readonly access to a network file" on Sep 25. There seems to be some issue in some file opening process that occurs with parallel processes

Re: Why does robocopy confuse input and output files defined with Cygwin/bash and perl?

2015-09-30 Thread Andrey Repin
Greetings, Eliot Moss! > Dealing with "odd" characters like \ and such can be a pain, huh? > Perhaps it will help you to know that bash will expand variables > inside double-quoted arguments, i.e., "${src}". (You can write > "$src" if you want, but over the years I am finding it clearer / > bette

Re: Why does robocopy confuse input and output files defined with Cygwin/bash and perl?

2015-09-30 Thread Eliot Moss
Dealing with "odd" characters like \ and such can be a pain, huh? Perhaps it will help you to know that bash will expand variables inside double-quoted arguments, i.e., "${src}". (You can write "$src" if you want, but over the years I am finding it clearer / better to use the { } to make clear th

Why does robocopy confuse input and output files defined with Cygwin/bash and perl?

2015-09-30 Thread siegfried
I sent this once and it did not appear in the list. Maybe I typed the list name wrong? I apologize if this appears twice. I think the following code below should work (unfortunately, my email program wants to wrap the code). The results of the echo statement look fine! When I cut and paste the

Re: Cygwin bash for loops : repeated errors : [main] bash 1972 fork: child -1 - CreateProcessW failed for errno 9 bash: fork: Bad file descriptor

2015-09-30 Thread litter
> It seems a race problem, due to the repetitive fork of grep > for every line of some-file So why does it fail? Seems like a bug to me! Regards, Paul >>> >>> As does not fail on my computer, I suspect is a race between your AV and >>> cygwin and sometimes cygwin wi

Re: Cygwin bash for loops : repeated errors : [main] bash 1972 fork: child -1 - CreateProcessW failed for errno 9 bash: fork: Bad file descriptor

2015-09-24 Thread Marco Atzeri
On 24/09/2015 11:51, lit...@null.net wrote: .> On 23/09/2015 17:03, lit...@null.net wrote: It seems a race problem, due to the repetitive fork of grep for every line of some-file So why does it fail? Seems like a bug to me! Regards, Paul As does not fail on my computer, I suspect is a race

Re: Cygwin bash for loops : repeated errors : [main] bash 1972 fork: child -1 - CreateProcessW failed for errno 9 bash: fork: Bad file descriptor

2015-09-24 Thread litter
.> On 23/09/2015 17:03, lit...@null.net wrote: >>> It seems a race problem, due to the repetitive fork of grep >>> for every line of some-file >> >> So why does it fail? Seems like a bug to me! >> >> Regards, >> Paul > > As does not fail on my computer, I suspect is a race between your AV and > c

Re: Cygwin bash for loops : repeated errors : [main] bash 1972 fork: child -1 - CreateProcessW failed for errno 9 bash: fork: Bad file descriptor

2015-09-23 Thread Marco Atzeri
On 23/09/2015 17:03, lit...@null.net wrote: It seems a race problem, due to the repetitive fork of grep for every line of some-file So why does it fail? Seems like a bug to me! Regards, Paul As does not fail on my computer, I suspect is a race between your AV and cygwin and sometimes cygwin

Re: Cygwin bash for loops : repeated errors : [main] bash 1972 fork: child -1 - CreateProcessW failed for errno 9 bash: fork: Bad file descriptor

2015-09-23 Thread litter
> It seems a race problem, due to the repetitive fork of grep > for every line of some-file So why does it fail? Seems like a bug to me! Regards, Paul -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/

Re: Cygwin bash for loops : repeated errors : [main] bash 1972 fork: child -1 - CreateProcessW failed for errno 9 bash: fork: Bad file descriptor

2015-09-23 Thread Marco Atzeri
On 23/09/2015 09:52, lit...@null.net wrote: Hi all, On a Windows XP 32 bit machine with latest Cygwin installed (CYGWIN_NT-5.1 2.2.1(0.289/5/3) 2015-08-20 11:40 i686 Cygwin) I frequently encounter errors which break bash while loops, making it practically unusable e.g. cat some-file | while

Cygwin bash for loops : repeated errors : [main] bash 1972 fork: child -1 - CreateProcessW failed for errno 9 bash: fork: Bad file descriptor

2015-09-23 Thread litter
Hi all, On a Windows XP 32 bit machine with latest Cygwin installed (CYGWIN_NT-5.1 2.2.1(0.289/5/3) 2015-08-20 11:40 i686 Cygwin) I frequently encounter errors which break bash while loops, making it practically unusable e.g. cat some-file | while read i;do grep text $i;done results in 2 [main

RE: Strange Issue with Launching Cygwin bash and other Applications

2015-02-15 Thread Klemm, Michael
Dear Andrey, > -Original Message- > From: Andrey Repin [mailto:anrdae...@yandex.ru] > Sent: Saturday, February 14, 2015 12:40 AM > > Greetings, Klemm, Michael! Yeah, "Lastname, Firstname" is the default for our little company :-). > > After the last restart (and maybe also after an upd

Re: Strange Issue with Launching Cygwin bash and other Applications

2015-02-13 Thread Andrey Repin
Greetings, Klemm, Michael! > After the last restart (and maybe also after an update of Cygwin last > week), the first start of bash takes hideously long (about 2 minutes). The > same happens to programs like latexmk: > $ time latexmk --help > Latexmk: This is Latexmk, John Collins, 10 January 20

Strange Issue with Launching Cygwin bash and other Applications

2015-02-13 Thread Klemm, Michael
Dear all, After the last restart (and maybe also after an update of Cygwin last week), the first start of bash takes hideously long (about 2 minutes). The same happens to programs like latexmk: $ time latexmk --help Latexmk: This is Latexmk, John Collins, 10 January 2015, version: 4.42. [... m

Re: Running non-cygwin executables in cygwin bash terminal or script

2014-11-05 Thread Andrey Repin
Greetings, Kal Sze! > In general, is there anything that can go wrong or not work if I > invoke regular Windows/.NET executables (not compiled with any cygwin > header or linked with any cygwin dll) from a cygwin bash terminal or > script? Speaking veeery-veeery generally, no. A

Running non-cygwin executables in cygwin bash terminal or script

2014-11-05 Thread Kal Sze
Hello, In general, is there anything that can go wrong or not work if I invoke regular Windows/.NET executables (not compiled with any cygwin header or linked with any cygwin dll) from a cygwin bash terminal or script? I am planning to write a bash script to call rsync and then a command line

Re: cygwin bash script suddenly can't find ls, grep

2014-10-15 Thread Robert Klemme
On Tue, Oct 14, 2014 at 10:54 PM, LMH wrote: > Thorsten Kampe wrote: >> * LMH (Sat, 11 Oct 2014 20:30:07 -0400) >>> Good Lord, I guess I wasn't thinking very clearly trying to use >>> PATH as >>> a variable for something else. I changed to, >>> >>> FILE_DIR=$(ls -d './'$SET'/'$FOLD'/'$FOLD'_anneal

Re: cygwin bash script suddenly can't find ls, grep

2014-10-14 Thread LMH
Thorsten Kampe wrote: > * LMH (Sat, 11 Oct 2014 20:30:07 -0400) >> Good Lord, I guess I wasn't thinking very clearly trying to use >> PATH as >> a variable for something else. I changed to, >> >> FILE_DIR=$(ls -d './'$SET'/'$FOLD'/'$FOLD'_anneal/'$PARAM_SET'/'$AN_SET) >> echo $FILE_DIR >> >> FILE_L

Re: cygwin bash script suddenly can't find ls, grep

2014-10-14 Thread LMH
Achim Gratz wrote: > LMH writes: >> Good Lord, I guess I wasn't thinking very clearly trying to use PATH as >> a variable for something else. I changed to, >> >> FILE_DIR=$(ls -d './'$SET'/'$FOLD'/'$FOLD'_anneal/'$PARAM_SET'/'$AN_SET) >> echo $FILE_DIR >> >> FILE_LIST=($(ls $FILE_DIR'/'*'out.txt' )

Re: cygwin bash script suddenly can't find ls, grep

2014-10-12 Thread Thorsten Kampe
* LMH (Sat, 11 Oct 2014 20:30:07 -0400) > Good Lord, I guess I wasn't thinking very clearly trying to use > PATH as > a variable for something else. I changed to, > > FILE_DIR=$(ls -d './'$SET'/'$FOLD'/'$FOLD'_anneal/'$PARAM_SET'/'$AN_SET) > echo $FILE_DIR > > FILE_LIST=($(ls $FILE_DIR'/'*'out.tx

Re: cygwin bash script suddenly can't find ls, grep

2014-10-11 Thread Achim Gratz
LMH writes: > Good Lord, I guess I wasn't thinking very clearly trying to use PATH as > a variable for something else. I changed to, > > FILE_DIR=$(ls -d './'$SET'/'$FOLD'/'$FOLD'_anneal/'$PARAM_SET'/'$AN_SET) > echo $FILE_DIR > > FILE_LIST=($(ls $FILE_DIR'/'*'out.txt' )) > echo ${FILE_LIST[@]} > >

Re: cygwin bash script suddenly can't find ls, grep

2014-10-11 Thread LMH
Ken Brown wrote: > On 10/11/2014 8:04 PM, LMH wrote: >> Hello, >> >> I have been working on a bash script and suddenly I started getting an >> error that ls could not be found, >> >> ./remove_rows.sh: line 27: ls: command not found >> >> I can run ls from the command line just fine. There is also

Re: cygwin bash script suddenly can't find ls, grep

2014-10-11 Thread Ken Brown
On 10/11/2014 8:04 PM, LMH wrote: Hello, I have been working on a bash script and suddenly I started getting an error that ls could not be found, ./remove_rows.sh: line 27: ls: command not found I can run ls from the command line just fine. There is also an ls command before line 27 that runs

cygwin bash script suddenly can't find ls, grep

2014-10-11 Thread LMH
Hello, I have been working on a bash script and suddenly I started getting an error that ls could not be found, ./remove_rows.sh: line 27: ls: command not found I can run ls from the command line just fine. There is also an ls command before line 27 that runs fine. This is the part of the script

Re: cygwin bash and Shellshock / CVE-2014-6271 & CVE-2014-7169

2014-09-26 Thread Eric Blake
On 09/26/2014 01:33 PM, Richard DeFuria wrote: > Hello, > > I downloaded the latest setup and installed the latest packages on my Win8.1 > x64 box. > > It seems as though my cygwin bash shell has been patched against > CVE-2014-6271 as per: > $ env x='() {

Re: cygwin bash and Shellshock / CVE-2014-6271 & CVE-2014-7169

2014-09-26 Thread Marco Atzeri
On 26/09/2014 21:33, Richard DeFuria wrote: Hello, I downloaded the latest setup and installed the latest packages on my Win8.1 x64 box. It seems as though my cygwin bash shell has been patched against CVE-2014-6271 as per: $ env x='() { :;}; echo vulnerable' bash -c "

cygwin bash and Shellshock / CVE-2014-6271 & CVE-2014-7169

2014-09-26 Thread Richard DeFuria
Hello, I downloaded the latest setup and installed the latest packages on my Win8.1 x64 box. It seems as though my cygwin bash shell has been patched against CVE-2014-6271 as per: $ env x='() { :;}; echo vulnerable' bash -c "echo this is a test" bash:

Re: cygwin-bash compat/regression bug... startup line prob

2014-05-03 Thread Linda Walsh
Eric Blake wrote: On 05/01/2014 04:11 PM, Linda Walsh wrote: The reason the above fails... (I got it to work).. is that if there is a space on the line after the "-u", that also fails. I didn't deliberately put one there, but that it no longer handles separate options is an evolution of softwa

Re: two execve() inconsistencies (was cygwin-bash compat/regression bug... startup line prob)

2014-05-02 Thread Linda Walsh
Eric Blake wrote: So why doesn't a single argument work (-u?) Because you didn't pass a single argument, but left trailing space ... --- But looking at the file, I didn't notice that until I recreated the file w/o using cut/paste (i.e. happened in another script that had -u at the top, and I

Re: cygwin-bash compat/regression bug... startup line prob

2014-05-01 Thread Eric Blake
On 05/01/2014 04:11 PM, Linda Walsh wrote: > The reason the above fails... (I got it to work).. is that if there is a > space > on the line after the "-u", that also fails. > > I didn't deliberately put one there, but that it no longer handles > separate options is an evolution of software devolu

cygwin-bash compat/regression bug... startup line prob

2014-05-01 Thread Linda Walsh
Bob McGowan wrote: >> Because you weren't running /bin/bash at that point in time, but >> /usr/bin/bash. Again, you snipped the relevant portion of your original > > No...I was... the output at the top was from "t.sh", which had > #!/bin/bash. > > But the error message says /usr/bin/bash.

two execve() inconsistencies [was: cygwin-bash compat/regression bug... startup line prob]

2014-05-01 Thread Eric Blake
On 05/01/2014 12:11 PM, Linda Walsh wrote: > > On linux, (and, thus on cygwin?), "#!/bin/bash -u -x -a -b -c" > is passed as 1 argument to bash. I.e. the spaces don't break things > into separate arguments on linux. Correct. So follow it through to it's logical conclusion: /bin/bash "-u -x -a

Re: cygwin-bash compat/regression bug... startup line prob

2014-05-01 Thread Linda Walsh
Eric Blake wrote: On 04/30/2014 11:57 PM, Linda Walsh wrote: Eric Blake wrote: On 04/28/2014 02:43 PM, Linda Walsh wrote: cat bin/t.sh #!/bin/bash -u Um... it doesn't work with 1 argument either. Your context quoting is hard to follow. Here, you are complaining about a she-bang with only

Re: cygwin-bash compat/regression bug... startup line prob

2014-04-30 Thread Eric Blake
On 04/30/2014 11:57 PM, Linda Walsh wrote: > Eric Blake wrote: >> On 04/28/2014 02:43 PM, Linda Walsh wrote: >> >> >> cat bin/t.sh >> > #!/bin/bash -u > Um... it doesn't work with 1 argument either. Your context quoting is hard to follow. Here, you are complaining about a she-bang with only one a

Re: cygwin-bash compat/regression bug... startup line prob

2014-04-30 Thread Linda Walsh
Eric Blake wrote: On 04/28/2014 02:43 PM, Linda Walsh wrote: >> cat bin/t.sh > #!/bin/bash -u Um... it doesn't work with 1 argument either. This is an invalid shebang line. Historically, you are allowed at most ONE argument to the program that you will be executing. ?!? Historically?.. sin

Re: cygwin-bash compat/regression bug... startup line prob

2014-04-28 Thread Eric Blake
On 04/28/2014 02:43 PM, Linda Walsh wrote: >> cat bin/t.sh > #!/bin/bash -u -x This is an invalid shebang line. Historically, you are allowed at most ONE argument to the program that you will be executing. #!/bin/bash -ux is valid, #!/bin/bash -u -x is not. > If I run it via: >> bash t.sh

cygwin-bash compat/regression bug... startup line prob

2014-04-28 Thread Linda Walsh
ne the switches (-ux), it works -- but I only added the '-x' to debug why '-u' didn't work. uname -a CYGWIN_NT-6.1 Athenae 1.7.29(0.272/5/3) 2014-04-07 13:46 x86_64 Cygwin bash --version GNU bash, version 4.1.11(2)-release (x86_64-unknown-cygwin) --- This, also, doesn't

Re: How to disable all syntax coloring in Cygwin/bash?

2013-12-16 Thread Gary Johnson
On 2013-12-16, Chris Wolf wrote: > On Mon, Dec 16, 2013 at 4:58 PM, Chris Wolf wrote: > > I just installed a recent release of Cygwin and notice that it now > > features syntax highlighting. Is there a way to totally disable this? > > All I want is be able to set the foreground/background colors

Re: How to disable all syntax coloring in Cygwin/bash?

2013-12-16 Thread Chris Wolf
I was able to come up with something, though not sure it's the best or what I had before. Sorry if this is obvious to most people, but to get rid of colorized output, I added to my .bashrc: export LS_COLORS='' If $PS1 has terminal color escape codes, then replace that also with something else, e

How to disable all syntax coloring in Cygwin/bash?

2013-12-16 Thread Chris Wolf
I just installed a recent release of Cygwin and notice that it now features syntax highlighting. Is there a way to totally disable this? All I want is be able to set the foreground/background colors via the Windoze way of right clicking on the frame and I don't want the out of "ls" colorized nor

Re: Expanding @-pathnames from Cygwin bash

2013-02-13 Thread Christopher Faylor
On Wed, Feb 13, 2013 at 05:47:19PM +, Adam Dinwoodie wrote: >The UG states > >> Cygwin programs expand their arguments starting with "@" in a special way. If >> a file pathname exists, the argument @pathname expands recursively to the >> content of pathname. >-- http://cygwin.com/cygwin-ug-net/

Expanding @-pathnames from Cygwin bash

2013-02-13 Thread Adam Dinwoodie
The UG states > Cygwin programs expand their arguments starting with "@" in a special way. If > a file pathname exists, the argument @pathname expands recursively to the > content of pathname. -- http://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-at It then contrasts "the behaviors

Re: Bold color in "cygwin bash shell"

2012-10-18 Thread Saurabh T
Date: Wed, 17 Oct 2012 13:04:02 -0400 Subject: Re: Bold color in "cygwin bash shell" Found this nice tip but haven't tried it myself. http://linuxtidbits.wordpress.com/2009/03/23/less-colors-for-man-pages/ -- Earnie -- Thanks for all the help. Earnie's suggestio

Re: Bold color in "cygwin bash shell"

2012-10-17 Thread Andrew DeFaria
On 10/17/2012 12:15 PM, Christopher Faylor wrote: On Wed, Oct 17, 2012 at 01:04:02PM -0400, Earnie Boyd wrote: On Wed, Oct 17, 2012 at 12:36 PM, Saurabh T wrote: For various reasons, I cannot switch to rxvt or similar, and am stuck using the cygwin bash shell (which runs on top of the dos cmd

Re: Bold color in "cygwin bash shell"

2012-10-17 Thread Christopher Faylor
On Wed, Oct 17, 2012 at 01:04:02PM -0400, Earnie Boyd wrote: >On Wed, Oct 17, 2012 at 12:36 PM, Saurabh T wrote: >>For various reasons, I cannot switch to rxvt or similar, and am stuck >>using the cygwin bash shell (which runs on top of the dos cmd window). >> >>Here, th

Re: Bold color in "cygwin bash shell"

2012-10-17 Thread Earnie Boyd
On Wed, Oct 17, 2012 at 12:36 PM, Saurabh T wrote: > > Hi, > > For various reasons, I cannot switch to rxvt or similar, and am stuck > using the cygwin bash shell (which runs on top of the dos cmd window). > > Here, the background color defaults to black and foreground to lig

Re: Bold color in "cygwin bash shell"

2012-10-17 Thread Andrew DeFaria
On 10/17/2012 9:36 AM, Saurabh T wrote: Hi, For various reasons, I cannot switch to rxvt or similar, and am stuck using the cygwin bash shell (which runs on top of the dos cmd window). Might we ask what are the reasons you can't use mintty? If it's because of other problems perhaps w

Re: Bold color in "cygwin bash shell"

2012-10-17 Thread Christopher Faylor
On Wed, Oct 17, 2012 at 12:39:27PM -0400, Robert Pendell wrote: >On Wed, Oct 17, 2012 at 12:36 PM, Saurabh T <...> wrote: >>For various reasons, I cannot switch to rxvt or similar, and am stuck >>using the cygwin bash shell (which runs on top of the dos cmd window). > &g

Re: Bold color in "cygwin bash shell"

2012-10-17 Thread Robert Pendell
On Wed, Oct 17, 2012 at 12:36 PM, Saurabh T <...> wrote: > > Hi, > > For various reasons, I cannot switch to rxvt or similar, and am stuck > using the cygwin bash shell (which runs on top of the dos cmd window). > > Here, the background color defaults to black and foregr

Bold color in "cygwin bash shell"

2012-10-17 Thread Saurabh T
Hi, For various reasons, I cannot switch to rxvt or similar, and am stuck using the cygwin bash shell (which runs on top of the dos cmd window). Here, the background color defaults to black and foreground to light. I reversed this using the dos window -> Properties -> Colors. However th

Re: Shelling out to cygwin bash from Windows vim Options

2012-09-01 Thread Andy
Sorry, what I posted was completely lacking in context. The shell option has to be set in such a way that bash sources .bashrc and picks up the aliases, function definitions, and most importantly, the PATH. To maintain common vimrc files for Windows & Cygwin installs of vim across multiple compu

Shelling out to cygwin bash from Windows vim Options

2012-09-01 Thread Andy
This problem dogged me for many years, and I finally hunkered down to chase it down. Here is the solution that I found works for me: "set shell=c:\cygwin\bin\bash.exe\ -i "Won't always find ~/.bashrc cuz depending on how vim is launched, "~ doesn't always resolve to c:/cygwin/home/$USERNAME

Cygwin Bash ^R ... and then left-arrow sometimes inserts control char in cmd buffer ?

2012-07-31 Thread Bill Meier
Example: [Start cygwin bash in a terminal] $ asdfghjkl asdfghjkl bash: asdfghjkl: command not found [enter ^rghj] [enter left-arrow] [result after redisplay of the line is:] $ asdf[Dghjkl Similar result for right-arror (shows ...[C... ) Doesn't always happen. Load/Timing depe

Re: cygwin bash include scripting and error code return question

2012-03-26 Thread Corinna Vinschen
On Mar 26 05:24, John Fairhall wrote: > The pipe is definitely the problem. > > If I have this: > > bash mainScript.sh 2>&1 > bash mailBuild.sh %ERRORLEVEL% %LOGFILE% > > When I gimmick mainScript to exit with any non-zero value I get an ERRORLEVEL > of 255. > > However, when I do this: > > b

RE: cygwin bash include scripting and error code return question

2012-03-25 Thread John Fairhall
The pipe is definitely the problem. If I have this: bash mainScript.sh 2>&1 bash mailBuild.sh %ERRORLEVEL% %LOGFILE% When I gimmick mainScript to exit with any non-zero value I get an ERRORLEVEL of 255. However, when I do this: bash -o pipefail mainScript.sh 2>&1 | tee $LOGFILE bash mailBuild

Re: cygwin bash include scripting and error code return question

2012-03-25 Thread Linda Walsh
John Fairhall wrote: Hi, I have a cygwin bash script running on 32 bit XP. I have a windows BAT script calling bash, like so: --- bash mainScript.sh 2>&1 | tee %LOGFILE% bash mailBuild.sh %ERRORLEVEL% %LOGFILE% --- What I was hoping was that bas

cygwin bash include scripting and error code return question

2012-03-25 Thread John Fairhall
Hi, I have a cygwin bash script running on 32 bit XP. I have a windows BAT script calling bash, like so: --- bash mainScript.sh 2>&1 | tee %LOGFILE% bash mailBuild.sh %ERRORLEVEL% %LOGFILE% --- What I was hoping was that bash would propagate the shell s

Re: 1.7.9 cygwin bash completion doesn't response

2011-10-22 Thread jan.kolar
xt: http://old.nabble.com/1.7.9-cygwin-bash-completion-doesn%27t-response-tp32688677p32702678.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://c

Re: 1.7.9 cygwin bash completion doesn't response

2011-10-22 Thread jan.kolar
ow in directories with large number of files. If anything of that does not hep, try following the rules from http://cygwin.com/problems.html. Output of ' cygcheck -s -v -r > cygcheck.out 2>&1 ' and OS version might give some information. -- View this message in context: h

1.7.9 cygwin bash completion doesn't response

2011-10-20 Thread sun
hi all, I got the bash completion problem which is very upset me, following is an example: in my home directory, there is a file : pkf if I want to vi the file and I type : vi pk(press tab) but there is no response or it's very slow, but in some cases like say when I vi the *.cpp files the tab

Re: Cygwin bash shell force closes on Amazon EC2 m2.xlarge Windows 2008 instances

2011-06-20 Thread Larry Hall (Cygwin)
On 6/20/2011 2:43 PM, Josh Gilmour wrote: Hi All - I have been seeing a weird issue with the AMI (ami-1cbd4475) - Windows 2008 R2 SP1. The issue is when I run the command 'if [ -e "file" ]; then echo "test"; fi' from the cygwin command prompt. When this command is run, the shell closes with no

Re: cygwin bash-4.1.9-2

2011-02-08 Thread Eric Blake
On 02/08/2011 12:15 PM, Kimbo Mundy wrote: >> I have not seen that issue, and you're the first to report it, but I'll >> see if I can reproduce it. I was able to reproduce this, but not on my machine (thanks Corinna for getting me set up); and the odd thing was that the problem disappears when com

Re: cygwin bash-4.1.9-2

2011-02-08 Thread Kimbo Mundy
On Wed, 02 Feb 2011 12:47:00 -0700, Eric Blake wrote: > On 02/02/2011 09:38 AM, Philipp Wiendl wrote: > > Hello, > > > > today i installed cygwin v1.7 with the new v4 bash package. > > I tried to run ssh-host-config and got following error: > > > > $ ssh-host-config -y > > *** Query: Overwrite exis

Re: cygwin bash-4.1.9-2

2011-02-02 Thread Eric Blake
[adding the list: http://cygwin.com/acronyms/#PPIOSPE] On 02/02/2011 09:38 AM, Philipp Wiendl wrote: > Hello, > > today i installed cygwin v1.7 with the new v4 bash package. > I tried to run ssh-host-config and got following error: > > $ ssh-host-config -y > *** Query: Overwrite existing /etc/ss

Re: cygwin : bash doesn't recognize BackSpace

2010-09-26 Thread Larry Hall (Cygwin)
On 9/26/2010 9:30 AM, MikeS wrote: Larry Hall (Cygwin cygwin.com> writes: On 5/27/2010 10:11 AM, RISINGP1 nationwide.com wrote: I was having trouble with the backspace key, but it was with pdksh, so I don't know if this will work for you, but it is worth a try... Andy Koppe gmail.com>

Re: cygwin : bash doesn't recognize BackSpace

2010-09-26 Thread MikeS
Larry Hall (Cygwin cygwin.com> writes: > > On 5/27/2010 10:11 AM, RISINGP1 nationwide.com wrote: > > I was having trouble with the backspace key, but it was with pdksh, so I > > don't know if this will work for you, but it is worth a try... > > > > Andy Koppe gmail.com> wrote: > > > >> From th

Re: cygwin : bash doesn't recognize BackSpace

2010-05-27 Thread Larry Hall (Cygwin)
On 5/27/2010 10:11 AM, risin...@nationwide.com wrote: I was having trouble with the backspace key, but it was with pdksh, so I don't know if this will work for you, but it is worth a try... Andy Koppe wrote: From the cygwin-1.7.5 release announcement: - Support DEC Backarrow Key Mode escape

Re: cygwin : bash doesn't recognize BackSpace

2010-05-27 Thread RISINGP1
Windows console. (The first one switches to ^H. You'll need to set stty erase accordingly.) - Phil From: Christopher Faylor To: cygwin@cygwin.com Date: 05/27/2010 10:03 AM Subject: Re: cygwin : bash doesn't recognize BackSpace Sent by: cygwin-ow...@cygwin.com On Thu, May 27, 2010 a

Re: cygwin : bash doesn't recognize BackSpace

2010-05-27 Thread Christopher Faylor
On Thu, May 27, 2010 at 05:49:53PM +0400, Andrei Dmitriev wrote: >Dave Korn wrote: >>On 27/05/2010 11:48, Andrei Dmitriev wrote: >>>after I installed the cygwin on May 19 the bash console don't recognize >>>*BACKSPACE* and continue to follow to the right each time I >>>press BACKSPACE.

Re: cygwin : bash doesn't recognize BackSpace

2010-05-27 Thread Andrei Dmitriev
Eliot Moss wrote: On 5/27/2010 6:48 AM, Andrei Dmitriev wrote: ** Hello, after I installed the cygwin on May 19 the bash console don't recognize *BACKSPACE* and continue to follow to the right each time I press BACKSPACE. Although, seem it actually erases the chars from the left (EN

Re: cygwin : bash doesn't recognize BackSpace

2010-05-27 Thread Andrei Dmitriev
Dave Korn wrote: On 27/05/2010 11:48, Andrei Dmitriev wrote: ** Hello, after I installed the cygwin on May 19 the bash console don't recognize *BACKSPACE* and continue to follow to the right each time I press BACKSPACE. Although, seem it actually erases the chars from the left (

Re: cygwin : bash doesn't recognize BackSpace

2010-05-27 Thread Dave Korn
On 27/05/2010 11:48, Andrei Dmitriev wrote: > ** Hello, > > after I installed the cygwin on May 19 the bash console don't recognize > *BACKSPACE* and continue to follow to the right each time I > press BACKSPACE. > Although, seem it actually erases the chars from the left (ENTER says >

cygwin : bash doesn't recognize BackSpace

2010-05-27 Thread Andrei Dmitriev
** Hello, after I installed the cygwin on May 19 the bash console don't recognize *BACKSPACE* and continue to follow to the right each time I press BACKSPACE. Although, seem it actually erases the chars from the left (ENTER says nothing - so I concluded the command is empty). Tha

Re: Cygwin bash regexp matching doesn't treat "\b" properly

2009-11-25 Thread Christopher Faylor
On Wed, Nov 25, 2009 at 10:33:53AM -0500, Buchbinder, Barry (NIH/NIAID) [E] wrote: >aputerguy sent the following at Tuesday, November 24, 2009 5:10 PM >>Seriously, there are times to use Perl and times not to... But >>launching perl seems a bit of overkill when I just have to do a simple >>match

RE: Cygwin bash regexp matching doesn't treat "\b" properly

2009-11-25 Thread Buchbinder, Barry (NIH/NIAID) [E]
aputerguy sent the following at Tuesday, November 24, 2009 5:10 PM > > Seriously, there are times to use Perl and times not to... But launching > perl seems a bit of overkill when I just have to do a simple match in a >.bashrc script or when I need a small shell script wrapper. Looking at the man

Re: Cygwin bash regexp matching doesn't treat "\b" properly

2009-11-25 Thread Corinna Vinschen
On Nov 24 17:23, Christopher Faylor wrote: > On Tue, Nov 24, 2009 at 10:18:27PM +, Eric Blake wrote: > >So, in true open source fashion, why not write a patch that teaches cygwin's > >regex(3) implementation that \b is a synonym to [[:<:][:>:]]? > >[...] > If anyone does this they should remem

Re: Cygwin bash regexp matching doesn't treat "\b" properly

2009-11-24 Thread Eric Blake
Dave Korn googlemail.com> writes: > > $ [[ "foo" =~ [[:\<:]]foo[[:\>:]] ]]; echo $? > 0 > > (Note that I had to backslash-escape the < and > there. In other contexts > that might not be needed.) But here's something weird with how bash manages quoting inside [[ ]]. If you add a subexpress

Re: Cygwin bash regexp matching doesn't treat "\b" properly

2009-11-24 Thread Dirk Fassbender
aputerguy schrieb: Hugh Myers: This might come across as slightly smart-assed, but if you wrote your script in Perl, you wouldn't have the platform problem, nor the word-boundary problem. True you would have a Perl problem, but that would still be several orders of magnitude easier than tryi

Re: Cygwin bash regexp matching doesn't treat "\b" properly

2009-11-24 Thread Christopher Faylor
On Tue, Nov 24, 2009 at 10:18:27PM +, Eric Blake wrote: >aputerguy kosowsky.org> writes: > >> HOWEVER, this solution while sweet for cygwin-bash, has the CONVERSE >> PROBLEM. >> Apparently, the special strings [[:<:]] and [[:>:]] are not recognized under >

Re: Cygwin bash regexp matching doesn't treat "\b" properly

2009-11-24 Thread Eric Blake
aputerguy kosowsky.org> writes: > HOWEVER, this solution while sweet for cygwin-bash, has the CONVERSE > PROBLEM. > Apparently, the special strings [[:<:]] and [[:>:]] are not recognized under > Linux regex(7) - they give return code 2. And why is that surprising? 

Re: Cygwin bash regexp matching doesn't treat "\b" properly

2009-11-24 Thread Eliot Moss
What I have often done in a case like this is: Add the separator (space in this case) at each end of the list. So, if the initial string is "101 203 455" I turn that into " 101 203 455 ". LIST=" ${LIST} " Then I match the desired string, also surrounded by spaces, like this: [ -z "${LIST##* ${

  1   2   3   4   >