Am 04.07.2026 um 03:32 schrieb Annihilannic via Cygwin:
Firstly, why is =~ completely undocumented in the bash man page?  This question was my first encounter with the feature.

Because it's not --- not undocumented, that is.  Manpage search can't seem to find it, but it _is_ there.

Just search for '==' instead, then go one paragraph down.

Secondly, why does quoting the expression invalidate it?

I suspect that's because the manual actually says it does.   As I'm reading it, they're (ab)using quotation to mean "this is not meant to be a regex, but rather a straight text search pattern"


--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to