X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Matthew Woehlke Subject: Re: Bash regular expressions Date: Tue, 19 Dec 2006 15:00:26 -0600 Lines: 15 Message-ID: References: <45884F6E DOT 5070701 AT yandex DOT ru> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.8) Gecko/20061025 Thunderbird/1.5.0.8 Mnenhy/0.7.4.0 In-Reply-To: <45884F6E.5070701@yandex.ru> X-IsSubscribed: yes 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 Boris Toloknov wrote: > It seems that regular expressions [[ str =~ regex ]] do not work in bash. > For example the following expression doesn't match: > [[ abc =~ 'a.*c' ]] && echo It works > while the simple substring matches: > [[ abc =~ 'bc' ]] && echo It works > Is it a bug ? WJFFM. Maybe you should start with: > Problem reports: http://cygwin.com/problems.html -- Matthew This message is non-smoking -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/