On my Gentoo system, find . -regextype help
outputs
find: Unknown regular expression type ‘help’; valid types are ‘findutils-default’, ‘awk’, ‘egrep’, ‘ed’, ‘emacs’, ‘gnu-awk’, ‘grep’, ‘posix-awk’, ‘posix-basic’, ‘posix-egrep’, ‘posix-extended’, ‘posix-minimal-basic’, ‘sed’.
I always thought smart quotes (or whatever they are called) are the scourge of Microsoft software, turns out nobody's protected from that ugliness.
On my other system (Cygwin), LANG
is set to en_US.UTF-8
, and smart quotes are also displayed. If I unset LANG
or set it to en.UTF-8
, output changes to regular single quotes:
# unset LANG
# find -regextype help
find: Unknown regular expression type 'help'; valid types are 'findutils-default', 'awk', 'egrep', 'ed', 'emacs', 'gnu-awk', 'grep', 'posix-awk', 'posix-basic', 'posix-eg
rep', 'posix-extended', 'posix-minimal-basic', 'sed'.
But on the Gentoo system I mentioned earlier, LANG is unset. Whatever I try to set it (and other locale env vars) to, I see smart quotes and/or a bunch of error messages about incorrect locales.
How to get back my single quotes?