This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygcheck and literal plus sign


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]