X-Spam-Check-By: sourceware.org Message-ID: <45884F6E.5070701@yandex.ru> Date: Tue, 19 Dec 2006 15:45:34 -0500 From: Boris Toloknov User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Bash regular expressions Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 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 ? Thanks, Boris -- 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/