This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: boxes.sh grep: Unmatched [ or [^ at egrep '[[:space]]'
- From: VÃclav Haisman <v dot haisman at sh dot cvut dot cz>
- To: Reini Urban <rurban at x-ray dot at>
- Cc: The Cygwin Mailing List <cygwin at cygwin dot com>
- Date: Mon, 09 Aug 2010 14:25:41 +0200
- Subject: Re: boxes.sh grep: Unmatched [ or [^ at egrep '[[:space]]'
- References: <AANLkTikD+rtLR2Sbtg61g+2Fp-krcPeQRrHZg2O446cH@mail.gmail.com>
- Reply-to: cygwin at cygwin dot com
On Mon, 9 Aug 2010 11:05:12 +0200, Reini Urban wrote:
> Jaro,
>
> Our nice new setup found a problem in the boxes postinstall script:
> Package: boxes
> boxes.sh exit code 2
> Package: No package
> boxes.sh exit code 2
>
> cd /etc/postinstall
> $ ./boxes.sh
> grep: Unmatched [ or [^
>
> in grep -E '^[^#]*/|^[[:space]]*$'
/etc/preremove/boxes-manifest-from.lst
> and it is the [[:space]] part, which is broken. Per man grep it should
> work, but I don't know those specialities too well.
Should that not be '[[:space:]]'? Without the single quotes.
--
VH
--
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