delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <45884F6E.5070701@yandex.ru> |
Date: | Tue, 19 Dec 2006 15:45:34 -0500 |
From: | Boris Toloknov <tlknv AT yandex DOT ru> |
User-Agent: | Thunderbird 1.5.0.7 (Windows/20060909) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Bash regular expressions |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |