Comment 3 for bug 274221

Revision history for this message
Rusty Russell (rusty-rustcorp) wrote : Re: grep -w doesn't always grab whole words

Yes, LANG=C fixes it.

rusty@vivaldi:~/devel/kernel/patches/linux-2.6$ LANG=C grep -w alloca kernel/pid.c
rusty@vivaldi:~/devel/kernel/patches/linux-2.6$ grep -w alloca kernel/pid.c
 * Generic pidhash and scalable, time-bounded PID allocator
rusty@vivaldi:~/devel/kernel/patches/linux-2.6$ locale
LANG=en_AU.UTF-8
LC_CTYPE="en_AU.UTF-8"
LC_NUMERIC="en_AU.UTF-8"
LC_TIME="en_AU.UTF-8"
LC_COLLATE="en_AU.UTF-8"
LC_MONETARY="en_AU.UTF-8"
LC_MESSAGES="en_AU.UTF-8"
LC_PAPER="en_AU.UTF-8"
LC_NAME="en_AU.UTF-8"
LC_ADDRESS="en_AU.UTF-8"
LC_TELEPHONE="en_AU.UTF-8"
LC_MEASUREMENT="en_AU.UTF-8"
LC_IDENTIFICATION="en_AU.UTF-8"
LC_ALL=