done
export GREP_OPTIONS="--binary-files=without-match --directories=skip"
if echo x|GREP_OPTIONS="--exclude=y" grep -q x 2>/dev/null;then
- export GREP_OPTIONS="$GREP_OPTIONS --exclude=tags --exclude=TAGS --exclude=CVS --exclude=ChangeLog* --exclude=*.svn-base --exclude=*~"
+ export GREP_OPTIONS="$GREP_OPTIONS --exclude=tags --exclude=TAGS --exclude=ChangeLog* --exclude=*.svn-base --exclude=*~"
# FIXME: grep(1) ignores subdirectories for --exclude.
- #export GREP_OPTIONS="$GREP_OPTIONS --exclude=testsuite --exclude=.pc --exclude=.svn"
+ #export GREP_OPTIONS="$GREP_OPTIONS --exclude=testsuite --exclude=.pc --exclude=.svn --exclude=CVS --exclude=po"
fi
if [ -n "$PS1" ];then # set only in interactive sessions
if [ ! -f /MOCK ];then
# # due to LC_COLLATE=C and LC_ALL=(unset)
# export LC_ALL=C
# as it breaks Mutt "utf-8" and somehow it is no longer needed.
+# Re: [Bug-readline] Readline 6.0 patch 004 trapped signal echoed to conso
+# http://lists.gnu.org/archive/html/bug-readline/2009-09/msg00006.html
+stty -echoctl
function wclines { awk '{x[$0]++}END{for (i in x) print x[i]"\t"i}'; }
# SunOS does not support "-m"