This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Bash regular expressions


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]