These three commands should all return patch, but the last one does not (and is buggy): $ echo patch | LC_ALL=cs_CZ grep '[[.ch.]]$' patch $ echo patch | LC_ALL=cs_CZ grep 't[[=ch=]]$' patch $ echo patch | LC_ALL=cs_CZ grep '[[=ch=]]$' $
These three commands should all return patch, but the last one does not (and is buggy): $ echo patch | LC_ALL=cs_CZ grep '[[.ch.]]$' patch $ echo patch | LC_ALL=cs_CZ grep 't[[=ch=]]$' patch $ echo patch | LC_ALL=cs_CZ grep '[[=ch=]]$' $