Re: cygcheck and literal plus sign

2017-01-30 Thread Steven Penny
On Mon, 30 Jan 2017 18:30:19, Jon Turney wrote: > I added a workaround to the script so that corresponding decoding ('+' > -> ' ') is skipped if it looks like a cygcheck request ('text=1'), so > this should be working again Confirmed fixed, thanks. -- Problem reports:

Re: cygcheck and literal plus sign

2017-01-30 Thread Jon Turney
On 28/01/2017 03:01, Steven Penny wrote: On Mon, 27 Jan 2014 16:43:23, Steven Penny wrote: $ cygcheck -p 'g\x2b\x2b.exe' I think this relies on this being interpreted as a PCRE regex, which hasn't been the case for a while, since some server-side changes. It looks like this is broken

Re: cygcheck and literal plus sign

2017-01-28 Thread Brian Inglis
On 2017-01-28 12:06, Eric Blake wrote: > On 01/28/2017 11:45 AM, Brian Inglis wrote: >>> it did put me on the right track: >>> $ cygcheck -p 'mingw32-g[:punct:][:punct:]' | awk 'NR>1{$0=$1}1' >> Your command is the same as: >> $ cygcheck -p mingw32-g[:ctnpu][:ctnpu] | sed '2,$s/\s.*//' > Not

Re: cygcheck and literal plus sign

2017-01-28 Thread Eric Blake
On 01/28/2017 11:45 AM, Brian Inglis wrote: >> it did put me on the right track: >> $ cygcheck -p 'mingw32-g[:punct:][:punct:]' | awk 'NR>1{$0=$1}1' > Your command is the same as: > > $ cygcheck -p mingw32-g[:ctnpu][:ctnpu] | sed '2,$s/\s.*//' Not necessarily. You forgot quotes, so

Re: cygcheck and literal plus sign

2017-01-28 Thread Brian Inglis
On 2017-01-28 05:21, Steven Penny wrote: > On Fri, 27 Jan 2017 21:01:14, Doug Henderson wrote: >> Try this: >> $ cygcheck -p "mingw32-g[*-,][*-,]" >> Found 4 matches for mingw32-g[*-,][*-,] > Thanks for this. Using ranges is gross, because it relies on your locale, but > it did put me on the right

Re: cygcheck and literal plus sign

2017-01-28 Thread Steven Penny
On Fri, 27 Jan 2017 21:01:14, Doug Henderson wrote: > Try this: > $ cygcheck -p "mingw32-g[*-,][*-,]" > Found 4 matches for mingw32-g[*-,][*-,] Thanks for this. Using ranges is gross, because it relies on your locale, but it did put me on the right track: $ cygcheck -p

Re: cygcheck and literal plus sign

2017-01-27 Thread Doug Henderson
On 27 January 2017 at 20:01, Steven Penny wrote: > On Mon, 27 Jan 2014 16:43:23, Steven Penny wrote: >> $ cygcheck -p 'g\x2b\x2b.exe' > > It looks like this is broken again. package-grep does work: > > $ q=https://cygwin.com/cgi-bin2/package-grep.cgi > $ curl -s

Re: cygcheck and literal plus sign

2017-01-27 Thread Steven Penny
On Mon, 27 Jan 2014 16:43:23, Steven Penny wrote: > $ cygcheck -p 'g\x2b\x2b.exe' It looks like this is broken again. package-grep does work: $ q=https://cygwin.com/cgi-bin2/package-grep.cgi $ curl -s "$q"'?text=1=x86_64=mingw32-g%2B%2B' | awk 'NR>1{$0=$1}1' Found 4 matches for mingw32-g++

RE: cygcheck and literal plus sign

2014-01-27 Thread Gates, Roger
On Friday, January 24, 2014 9:26 PM Steven Penny wrote On Wed, Jan 22, 2014 at 10:05 AM, David Boyce wrote How about 'g[+][+]' or 'g[+]{2}'? Please, no more lazy answers $ cygcheck -p 'g[+][+].exe' Found 0 matches for g[ ][ ].exe $ ascii + ASCII 2/11 is decimal 043, hex 2b, octal 053,

Re: cygcheck and literal plus sign

2014-01-27 Thread Larry Hall (Cygwin)
On 1/27/2014 10:47 AM, Gates, Roger wrote: $ ascii + ASCII 2/11 is decimal 043, hex 2b, octal 053, bits 00101011: prints as `+' Official name: Plus Sign Other names: Add, Cross $ cygcheck -p 'g\x{2b}\x{2b}.exe' Found 11 matches for g\x{2b}\x{2b}.exe But of course, everyone knows that! ;-)

Re: cygcheck and literal plus sign

2014-01-27 Thread Steven Penny
On Mon, Jan 27, 2014 at 9:47 AM, Gates, Roger wrote $ ascii + It should be noted that ascii is not included with a base install, and part of the ascii package $ cygcheck -p 'g\x{2b}\x{2b}.exe' it should be further noted that the braces are not necessary in this instance $ cygcheck -p

Re: cygcheck and literal plus sign

2014-01-24 Thread Steven Penny
On Wed, Jan 22, 2014 at 10:05 AM, David Boyce wrote How about 'g[+][+]' or 'g[+]{2}'? Please, no more lazy answers $ cygcheck -p 'g[+][+].exe' Found 0 matches for g[ ][ ].exe -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/

Re: cygcheck and literal plus sign

2014-01-22 Thread Andrew Schulman
$ cygcheck -p 'g\+\+.exe' Found 0 matches for g\ \ .exe How can I include a literal '+' (plus character) in my search? By remembering that this is a regex search. How do you quote special characters in regexes? Answer: With a '\'. That's what he did. The single quotes

Re: cygcheck and literal plus sign

2014-01-22 Thread Christopher Faylor
On Wed, Jan 22, 2014 at 06:34:49AM -0500, Andrew Schulman wrote: $ cygcheck -p 'g\+\+.exe' Found 0 matches for g\ \ .exe How can I include a literal '+' (plus character) in my search? By remembering that this is a regex search. How do you quote special characters in regexes?

Re: cygcheck and literal plus sign

2014-01-22 Thread Andrew Schulman
On Wed, Jan 22, 2014 at 06:34:49AM -0500, Andrew Schulman wrote: $ cygcheck -p 'g\+\+.exe' Found 0 matches for g\ \ .exe How can I include a literal '+' (plus character) in my search? By remembering that this is a regex search. How do you quote special characters in

Re: cygcheck and literal plus sign

2014-01-22 Thread Larry Hall (Cygwin)
On 1/22/2014 11:05 AM, David Boyce wrote: On Wed, Jan 22, 2014 at 7:07 AM, Christopher Faylor wrote: So I'll change my answer to I don't know. How about 'g[+][+]' or 'g[+]{2}'? May I suggest that curious folks can more directly validate workarounds by trying them directly. cygwin.com

Re: cygcheck and literal plus sign

2014-01-22 Thread David Boyce
On Wed, Jan 22, 2014 at 7:07 AM, Christopher Faylor wrote: So I'll change my answer to I don't know. How about 'g[+][+]' or 'g[+]{2}'? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html

cygcheck and literal plus sign

2014-01-21 Thread Steven Penny
Searching for the popular compiler produces unexpected results $ cygcheck -p 'g++.exe' Found 0 matches for g .exe $ cygcheck -p 'g\+\+.exe' Found 0 matches for g\ \ .exe How can I include a literal '+' (plus character) in my search? -- Problem reports:

Re: cygcheck and literal plus sign

2014-01-21 Thread Christopher Faylor
On Tue, Jan 21, 2014 at 05:59:16PM -0600, Steven Penny wrote: Searching for the popular compiler produces unexpected results $ cygcheck -p 'g++.exe' Found 0 matches for g .exe $ cygcheck -p 'g\+\+.exe' Found 0 matches for g\ \ .exe How can I include a literal '+' (plus

Re: cygcheck and literal plus sign

2014-01-21 Thread Marco Atzeri
On 22/01/2014 06:58, Christopher Faylor wrote: On Tue, Jan 21, 2014 at 05:59:16PM -0600, Steven Penny wrote: Searching for the popular compiler produces unexpected results $ cygcheck -p 'g++.exe' Found 0 matches for g .exe $ cygcheck -p 'g\+\+.exe' Found 0 matches for g\ \