Hello.

Please CC my email to answers as I'm not subscribed to the list.

I have problems using =~ operator. I've tried to search for answer, but
failed. I'm using GNU bash, version 3.1.17. Can anybody give me some
examples of usage?

I really do not understand why

$ [[ "string" =~ "[a-z]" ]] && echo something
something

echo me something. IIUC the regular expression [a-z] matches any single
letter, so how string "string" matches one letter?

Seems that I missed the point, or did I encounter bug?

Thank you for any help,
Peter.

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash

Reply via email to