* cygcheck and literal plus sign @ 2014-01-21 23:59 Steven Penny 2014-01-22 5:58 ` Christopher Faylor 0 siblings, 1 reply; 20+ messages in thread From: Steven Penny @ 2014-01-21 23:59 UTC (permalink / raw) To: cygwin 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: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: cygcheck and literal plus sign 2014-01-21 23:59 cygcheck and literal plus sign Steven Penny @ 2014-01-22 5:58 ` Christopher Faylor 2014-01-22 6:46 ` Marco Atzeri 2014-01-22 11:35 ` Andrew Schulman 0 siblings, 2 replies; 20+ messages in thread From: Christopher Faylor @ 2014-01-22 5:58 UTC (permalink / raw) To: cygwin 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 character) in my search? By remembering that this is a regex search. How do you quote special characters in regexes? Answer: With a '\'. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: cygcheck and literal plus sign 2014-01-22 5:58 ` Christopher Faylor @ 2014-01-22 6:46 ` Marco Atzeri 2014-01-22 11:35 ` Andrew Schulman 1 sibling, 0 replies; 20+ messages in thread From: Marco Atzeri @ 2014-01-22 6:46 UTC (permalink / raw) To: cygwin 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\ \ .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 '\'. > I am surely dumb, but whatever and how many '\' are used the '+' is always returned as a ' ' in the reply. So the specific example will be appreciated, as a single quoting usually works in regexes $ cd /etc/setup $ zcat gcc-g++.lst.gz |grep -P "g\+\+" usr/bin/g++.exe usr/bin/i686-pc-cygwin-g++.exe usr/share/man/man1/g++.1.gz Is something "sanitizing" the query on server side to avoid nasty surprise ? $ zcat gcc-g++.lst.gz |grep -P "g++" |wc -l 723 Marco -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: cygcheck and literal plus sign 2014-01-22 5:58 ` Christopher Faylor 2014-01-22 6:46 ` Marco Atzeri @ 2014-01-22 11:35 ` Andrew Schulman 2014-01-22 15:07 ` Christopher Faylor 1 sibling, 1 reply; 20+ messages in thread From: Andrew Schulman @ 2014-01-22 11:35 UTC (permalink / raw) To: cygwin > > $ 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 protected the \'s from interpretation by the shell, so cygcheck received the regex: g\+\+.exe -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: cygcheck and literal plus sign 2014-01-22 11:35 ` Andrew Schulman @ 2014-01-22 15:07 ` Christopher Faylor 2014-01-22 16:03 ` Andrew Schulman 2014-01-22 16:06 ` David Boyce 0 siblings, 2 replies; 20+ messages in thread From: Christopher Faylor @ 2014-01-22 15:07 UTC (permalink / raw) To: cygwin 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? Answer: With a '\'. > >That's what he did. The single quotes protected the \'s from >interpretation by the shell, so cygcheck received the regex: g\+\+.exe Sorry. I screwed up there by not reading carefully. So I'll change my answer to "I don't know". cgf -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: cygcheck and literal plus sign 2014-01-22 15:07 ` Christopher Faylor @ 2014-01-22 16:03 ` Andrew Schulman 2014-01-22 16:06 ` David Boyce 1 sibling, 0 replies; 20+ messages in thread From: Andrew Schulman @ 2014-01-22 16:03 UTC (permalink / raw) To: cygwin > 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? Answer: With a '\'. > > > >That's what he did. The single quotes protected the \'s from > >interpretation by the shell, so cygcheck received the regex: g\+\+.exe (which should have been g\+\+\.exe) > Sorry. I screwed up there by not reading carefully. > > So I'll change my answer to "I don't know". A time-honored answer :) -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: cygcheck and literal plus sign 2014-01-22 15:07 ` Christopher Faylor 2014-01-22 16:03 ` Andrew Schulman @ 2014-01-22 16:06 ` David Boyce 2014-01-22 16:13 ` Larry Hall (Cygwin) 2014-01-25 2:26 ` Steven Penny 1 sibling, 2 replies; 20+ messages in thread From: David Boyce @ 2014-01-22 16:06 UTC (permalink / raw) To: cygwin 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 Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: cygcheck and literal plus sign 2014-01-22 16:06 ` David Boyce @ 2014-01-22 16:13 ` Larry Hall (Cygwin) 2014-01-25 2:26 ` Steven Penny 1 sibling, 0 replies; 20+ messages in thread From: Larry Hall (Cygwin) @ 2014-01-22 16:13 UTC (permalink / raw) To: 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 generally has reasonable turnaround. -- Larry _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: cygcheck and literal plus sign 2014-01-22 16:06 ` David Boyce 2014-01-22 16:13 ` Larry Hall (Cygwin) @ 2014-01-25 2:26 ` Steven Penny 2014-01-27 15:48 ` Gates, Roger 1 sibling, 1 reply; 20+ messages in thread From: Steven Penny @ 2014-01-25 2:26 UTC (permalink / raw) To: cygwin 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/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 20+ messages in thread
* RE: cygcheck and literal plus sign 2014-01-25 2:26 ` Steven Penny @ 2014-01-27 15:48 ` Gates, Roger 2014-01-27 18:59 ` Larry Hall (Cygwin) 2014-01-27 22:43 ` Steven Penny 0 siblings, 2 replies; 20+ messages in thread From: Gates, Roger @ 2014-01-27 15:48 UTC (permalink / raw) To: cygwin 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, 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 x86/cygwin64-gcc-g++/cygwin64-gcc-g++-4.8.2-1 x86/cygwin64-gcc-g++/cygwin64-gcc-g++-4.8.2-2 x86/gcc-g++/gcc-g++-4.8.2-1 x86/gcc-g++/gcc-g++-4.8.2-2 x86/gcc4-g++/gcc4-g++-4.7.3-2 x86/mingw-gcc-g++/mingw-gcc-g++-4.5.2-1 x86/mingw-gcc-g++/mingw-gcc-g++-4.7.3-1 x86/mingw64-i686-gcc-g++/mingw64-i686-gcc-g++-4.8.2-1 x86/mingw64-i686-gcc-g++/mingw64-i686-gcc-g++-4.8.2-2 x86/mingw64-x86_64-gcc-g++/mingw64-x86_64-gcc-g++-4.8.2-1 x86/mingw64-x86_64-gcc-g++/mingw64-x86_64-gcc-g++-4.8.2-2 $ Roger L. Gates ______________________________________________________________________ This e-mail has been scanned by Verizon Managed Email Content Service, using Skeptic(tm) technology powered by MessageLabs. For more information on Verizon's Managed Email Content Service, visit http://www.verizonbusiness.com. ______________________________________________________________________ -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: cygcheck and literal plus sign 2014-01-27 15:48 ` Gates, Roger @ 2014-01-27 18:59 ` Larry Hall (Cygwin) 2014-01-27 22:43 ` Steven Penny 1 sibling, 0 replies; 20+ messages in thread From: Larry Hall (Cygwin) @ 2014-01-27 18:59 UTC (permalink / raw) To: 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! ;-) Thanks Roger for providing this useful bit of info. -- Larry _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: cygcheck and literal plus sign 2014-01-27 15:48 ` Gates, Roger 2014-01-27 18:59 ` Larry Hall (Cygwin) @ 2014-01-27 22:43 ` Steven Penny 2017-01-28 3:01 ` Steven Penny 1 sibling, 1 reply; 20+ messages in thread From: Steven Penny @ 2014-01-27 22:43 UTC (permalink / raw) To: cygwin 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 'g\x2b\x2b.exe' Found 9 matches for g\x2b\x2b.exe x86_64/cygwin32-gcc-g++/cygwin32-gcc-g++-4.8.2-1 x86_64/cygwin32-gcc-g++/cygwin32-gcc-g++-4.8.2-2 x86_64/gcc-g++/gcc-g++-4.8.1-3 x86_64/gcc-g++/gcc-g++-4.8.2-1 x86_64/mingw-gcc-g++/mingw-gcc-g++-4.7.3-1 x86_64/mingw64-i686-gcc-g++/mingw64-i686-gcc-g++-4.8.1-2 x86_64/mingw64-i686-gcc-g++/mingw64-i686-gcc-g++-4.8.2-1 x86_64/mingw64-x86_64-gcc-g++/mingw64-x86_64-gcc-g++-4.8.1-2 x86_64/mingw64-x86_64-gcc-g++/mingw64-x86_64-gcc-g++-4.8.2-1 -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: cygcheck and literal plus sign 2014-01-27 22:43 ` Steven Penny @ 2017-01-28 3:01 ` Steven Penny 2017-01-28 4:01 ` Doug Henderson 2017-01-30 18:30 ` Jon Turney 0 siblings, 2 replies; 20+ messages in thread From: Steven Penny @ 2017-01-28 3:01 UTC (permalink / raw) To: cygwin 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&arch=x86_64&grep=mingw32-g%2B%2B' | awk 'NR>1{$0=$1}1' Found 4 matches for mingw32-g++ mingw64-i686-gcc-g++-5.4.0-2 mingw64-i686-gcc-g++-5.4.0-3 mingw64-x86_64-gcc-g++-5.4.0-2 mingw64-x86_64-gcc-g++-5.4.0-3 but it seems no incantation will make cygcheck work: $ cygcheck -p mingw32-g%2B%2B Found 0 matches for mingw32-g%2B%2B $ cygcheck -p mingw32-g%2b%2b Found 0 matches for mingw32-g%2b%2b $ cygcheck -p mingw32-g++ Found 0 matches for mingw32-g $ cygcheck -p 'mingw32-g\+\+' Found 0 matches for mingw32-g\ \ $ cygcheck -p 'mingw32-g\x{2b}\x{2b}' Found 0 matches for mingw32-g\x{2b}\x{2b} $ cygcheck -p 'mingw32-g\x2b\x2b' Found 0 matches for mingw32-g\x2b\x2b $ cygcheck -p 'mingw32-g\53\53' Found 0 matches for mingw32-g\53\53 $ cygcheck -p 'mingw32-g\053\053' Found 0 matches for mingw32-g\053\053 -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: cygcheck and literal plus sign 2017-01-28 3:01 ` Steven Penny @ 2017-01-28 4:01 ` Doug Henderson 2017-01-28 12:21 ` Steven Penny 2017-01-30 18:30 ` Jon Turney 1 sibling, 1 reply; 20+ messages in thread From: Doug Henderson @ 2017-01-28 4:01 UTC (permalink / raw) To: cygwin 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 "$q"'?text=1&arch=x86_64&grep=mingw32-g%2B%2B' | awk 'NR>1{$0=$1}1' > Found 4 matches for mingw32-g++ > mingw64-i686-gcc-g++-5.4.0-2 > mingw64-i686-gcc-g++-5.4.0-3 > mingw64-x86_64-gcc-g++-5.4.0-2 > mingw64-x86_64-gcc-g++-5.4.0-3 > > but it seems no incantation will make cygcheck work: Try this: $ cygcheck -p "mingw32-g[*-,][*-,]" Found 4 matches for mingw32-g[*-,][*-,] mingw64-i686-gcc-g++-5.4.0-2 - mingw64-i686-gcc-g++: GCC for Win32 (i686-w64-mingw32) toolchain (C++) (installed binaries and support files) mingw64-i686-gcc-g++-5.4.0-3 - mingw64-i686-gcc-g++: GCC for Win32 (i686-w64-mingw32) toolchain (C++) (installed binaries and support files) mingw64-x86_64-gcc-g++-5.4.0-2 - mingw64-x86_64-gcc-g++: GCC for Win64 toolchain (C++) (installed binaries and support files) mingw64-x86_64-gcc-g++-5.4.0-3 - mingw64-x86_64-gcc-g++: GCC for Win64 toolchain (C++) (installed binaries and support files) HTH Doug -- Doug Henderson, Calgary, Alberta, Canada - from gmail.com -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: cygcheck and literal plus sign 2017-01-28 4:01 ` Doug Henderson @ 2017-01-28 12:21 ` Steven Penny 2017-01-28 17:45 ` Brian Inglis 0 siblings, 1 reply; 20+ messages in thread From: Steven Penny @ 2017-01-28 12:21 UTC (permalink / raw) To: cygwin 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 'mingw32-g[:punct:][:punct:]' | awk 'NR>1{$0=$1}1' Found 8 matches for mingw32-g[:punct:][:punct:] mingw64-i686-gcc-core-5.4.0-2 mingw64-i686-gcc-core-5.4.0-3 mingw64-i686-gcc-debuginfo-5.4.0-2 mingw64-i686-gcc-debuginfo-5.4.0-3 mingw64-x86_64-gcc-core-5.4.0-2 mingw64-x86_64-gcc-core-5.4.0-3 mingw64-x86_64-gcc-debuginfo-5.4.0-2 mingw64-x86_64-gcc-debuginfo-5.4.0-3 -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: cygcheck and literal plus sign 2017-01-28 12:21 ` Steven Penny @ 2017-01-28 17:45 ` Brian Inglis 2017-01-28 19:06 ` Eric Blake 0 siblings, 1 reply; 20+ messages in thread From: Brian Inglis @ 2017-01-28 17:45 UTC (permalink / raw) To: cygwin 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 track: > $ cygcheck -p 'mingw32-g[:punct:][:punct:]' | awk 'NR>1{$0=$1}1' > Found 8 matches for mingw32-g[:punct:][:punct:] > mingw64-i686-gcc-core-5.4.0-2 > mingw64-i686-gcc-core-5.4.0-3 > mingw64-i686-gcc-debuginfo-5.4.0-2 > mingw64-i686-gcc-debuginfo-5.4.0-3 > mingw64-x86_64-gcc-core-5.4.0-2 > mingw64-x86_64-gcc-core-5.4.0-3 > mingw64-x86_64-gcc-debuginfo-5.4.0-2 > mingw64-x86_64-gcc-debuginfo-5.4.0-3 Your command is the same as: $ cygcheck -p mingw32-g[:ctnpu][:ctnpu] | sed '2,$s/\s.*//' Found 8 matches for mingw32-g[:ctnpu][:ctnpu] mingw64-i686-gcc-core-5.4.0-2 mingw64-i686-gcc-core-5.4.0-3 mingw64-i686-gcc-debuginfo-5.4.0-2 mingw64-i686-gcc-debuginfo-5.4.0-3 mingw64-x86_64-gcc-core-5.4.0-2 mingw64-x86_64-gcc-core-5.4.0-3 mingw64-x86_64-gcc-debuginfo-5.4.0-2 mingw64-x86_64-gcc-debuginfo-5.4.0-3 ITYM: $ cygcheck -p mingw32-g[[:punct:]][[:punct:]] | sed '2,$s/\s.*//' Found 4 matches for mingw32-g[[:punct:]][[:punct:]] mingw64-i686-gcc-g++-5.4.0-2 mingw64-i686-gcc-g++-5.4.0-3 mingw64-x86_64-gcc-g++-5.4.0-2 mingw64-x86_64-gcc-g++-5.4.0-3 -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: cygcheck and literal plus sign 2017-01-28 17:45 ` Brian Inglis @ 2017-01-28 19:06 ` Eric Blake 2017-01-28 19:59 ` Brian Inglis 0 siblings, 1 reply; 20+ messages in thread From: Eric Blake @ 2017-01-28 19:06 UTC (permalink / raw) To: cygwin [-- Attachment #1.1: Type: text/plain, Size: 750 bytes --] 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 depending on what is in your current directory, that glob might expand. > > ITYM: > > $ cygcheck -p mingw32-g[[:punct:]][[:punct:]] | sed '2,$s/\s.*//' Or, with proper quoting to shield yourself from globbing based on the contents of the current directory: cygcheck -p 'mingw32-g[[:punct:]][[:punct:]]' | sed '2,$s/\s.*//' -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 604 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: cygcheck and literal plus sign 2017-01-28 19:06 ` Eric Blake @ 2017-01-28 19:59 ` Brian Inglis 0 siblings, 0 replies; 20+ messages in thread From: Brian Inglis @ 2017-01-28 19:59 UTC (permalink / raw) To: cygwin 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 necessarily. You forgot quotes, so depending on what is in your > current directory, that glob might expand. The point was that in any case it was not doing what was wanted nor expected, and an extra set of brackets [[:punct:]] are needed to search for punctuation. >> ITYM: >> $ cygcheck -p mingw32-g[[:punct:]][[:punct:]] | sed '2,$s/\s.*//' Not sure what if anything glob does with double brackets - anything I tried with ls always returned the search string e.g. $ ls /etc/setup/[[a-z]]* ls: cannot access '/etc/setup/[[a-z]]*': No such file or directory It does not seem to have any support for accented character classes or the ilk e.g. re [[:a:][:e:][:i:][:o:][:u:]] which could be useful searching for UTF-8 filenames. > Or, with proper quoting to shield yourself from globbing based on the > contents of the current directory: > cygcheck -p 'mingw32-g[[:punct:]][[:punct:]]' | sed '2,$s/\s.*//' Always a concern for conscientious scripters and especially on Windows where characters which may rarely be encountered on Unix systems are often lurking to catch unwary scripters. -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: cygcheck and literal plus sign 2017-01-28 3:01 ` Steven Penny 2017-01-28 4:01 ` Doug Henderson @ 2017-01-30 18:30 ` Jon Turney 2017-01-31 0:00 ` Steven Penny 1 sibling, 1 reply; 20+ messages in thread From: Jon Turney @ 2017-01-30 18:30 UTC (permalink / raw) To: cygwin; +Cc: Steven Penny 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 again. package-grep does work: Thanks for pointing this out. > $ q=https://cygwin.com/cgi-bin2/package-grep.cgi > $ curl -s "$q"'?text=1&arch=x86_64&grep=mingw32-g%2B%2B' | awk 'NR>1{$0=$1}1' > Found 4 matches for mingw32-g++ > mingw64-i686-gcc-g++-5.4.0-2 > mingw64-i686-gcc-g++-5.4.0-3 > mingw64-x86_64-gcc-g++-5.4.0-2 > mingw64-x86_64-gcc-g++-5.4.0-3 > > but it seems no incantation will make cygcheck work: [...] > > $ cygcheck -p mingw32-g++ > Found 0 matches for mingw32-g It looks like the underlying bug here is that 'cygcheck -p' doesn't encode '+', but the package-grep-cgi script is expecting the query part of the URL to be application/x-www-form-urlencoded (as is the case with the web form interface to this search), where '+' is the encoding for a ' '... 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 > $ cygcheck -p mingw32-g++ > Found 4 matches for mingw32-g++ > mingw64-i686-gcc-g++-5.4.0-2 - mingw64-i686-gcc-g++: GCC for Win32 (i686-w64-mingw32) toolchain (C++) (installed binaries and support files) > mingw64-i686-gcc-g++-5.4.0-3 - mingw64-i686-gcc-g++: GCC for Win32 (i686-w64-mingw32) toolchain (C++) (installed binaries and support files) > mingw64-x86_64-gcc-g++-5.4.0-2 - mingw64-x86_64-gcc-g++: GCC for Win64 toolchain (C++) (installed binaries and support files) > mingw64-x86_64-gcc-g++-5.4.0-3 - mingw64-x86_64-gcc-g++: GCC for Win64 toolchain (C++) (installed binaries and support files) -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: cygcheck and literal plus sign 2017-01-30 18:30 ` Jon Turney @ 2017-01-31 0:00 ` Steven Penny 0 siblings, 0 replies; 20+ messages in thread From: Steven Penny @ 2017-01-31 0:00 UTC (permalink / raw) To: cygwin 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: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 20+ messages in thread
end of thread, other threads:[~2017-01-31 0:00 UTC | newest] Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2014-01-21 23:59 cygcheck and literal plus sign Steven Penny 2014-01-22 5:58 ` Christopher Faylor 2014-01-22 6:46 ` Marco Atzeri 2014-01-22 11:35 ` Andrew Schulman 2014-01-22 15:07 ` Christopher Faylor 2014-01-22 16:03 ` Andrew Schulman 2014-01-22 16:06 ` David Boyce 2014-01-22 16:13 ` Larry Hall (Cygwin) 2014-01-25 2:26 ` Steven Penny 2014-01-27 15:48 ` Gates, Roger 2014-01-27 18:59 ` Larry Hall (Cygwin) 2014-01-27 22:43 ` Steven Penny 2017-01-28 3:01 ` Steven Penny 2017-01-28 4:01 ` Doug Henderson 2017-01-28 12:21 ` Steven Penny 2017-01-28 17:45 ` Brian Inglis 2017-01-28 19:06 ` Eric Blake 2017-01-28 19:59 ` Brian Inglis 2017-01-30 18:30 ` Jon Turney 2017-01-31 0:00 ` Steven Penny
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).