X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=2.1 required=5.0 tests=BAYES_50,RCVD_IN_RP_RNBL,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org To: Reini Urban Subject: Re: boxes.sh grep: Unmatched [ or [^ at egrep '[[:space]]' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Date: Mon, 09 Aug 2010 14:25:41 +0200 From: =?UTF-8?Q?V=C3=A1clav_Haisman?= Cc: The Cygwin Mailing List In-Reply-To: References: Message-ID: <7003ad33f44831dc8549bfdfe5703071@shell.sh.cvut.cz> X-Sender: v DOT haisman AT sh DOT cvut DOT cz User-Agent: RoundCube Webmail/0.4-beta X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list 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