emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#15524: closed (Inconsistent case-sensitivity behav


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#15524: closed (Inconsistent case-sensitivity behavior)
Date: Sat, 08 Mar 2014 18:05:02 +0000

Your message dated Sat, 08 Mar 2014 10:04:37 -0800
with message-id <address@hidden>
and subject line Re:  Inconsistent case-sensitivity behavior
has caused the debbugs.gnu.org bug report #15524,
regarding Inconsistent case-sensitivity behavior
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
15524: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15524
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: Inconsistent case-sensitivity behavior Date: Fri, 04 Oct 2013 01:39:15 -0400
Can anyone explain what's going on here?  Why does the regexp "^[a-z]*$"
match the line "FOO"?

   Regards,
     Mark

--8<---------------cut here---------------start------------->8---
mhw:~$ (echo foo; echo FOO) | grep '[a-z]'
foo
mhw:~$ (echo foo; echo FOO) | grep '^[a-z][a-z][a-z]$'
foo
mhw:~$ (echo foo; echo FOO) | grep '^[a-z]*$'
foo
FOO
mhw:~$ echo $LANG
en_US.UTF-8
mhw:~$ grep --version
grep (GNU grep) 2.8
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Mike Haertel and others, see 
<http://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS>.
mhw:~$ export
declare -x COLUMNS="125"
declare -x DISPLAY=":0"
declare -x EDITOR="emacsclient"
declare -x EMACS="t"
declare -x HOME="/home/mhw"
declare -x HUSHLOGIN="FALSE"
declare -x HZ="100"
declare -x INPUTRC="/etc/inputrc"
declare -x INSIDE_EMACS="24.3.1,comint"
declare -x LANG="en_US.UTF-8"
declare -x LOGNAME="mhw"
declare -x LYNX_CFG="/home/mhw/lynx.cfg"
declare -x MAIL="/var/mail/mhw"
declare -x OLDPWD="/home/mhw/.local/share/guile/site/2.0"
declare -x 
PATH="/home/mhw/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
declare -x PS1="\\u:\\w\\\$ "
declare -x PWD="/home/mhw"
declare -x RATPOISON="ratpoison"
declare -x SHELL="/bin/bash"
declare -x SHLVL="4"
declare -x TERM="dumb"
declare -x TERMCAP=""
declare -x USER="mhw"
declare -x WINDOWPATH="7"
declare -x XAUTHORITY="/home/mhw/.Xauthority"
--8<---------------cut here---------------end--------------->8---

I'm using eglibc-2.13.  This is on a system I built myself based on
CLFS, but others have reported seeing the same behavior on Ubuntu.



--- End Message ---
--- Begin Message --- Subject: Re: Inconsistent case-sensitivity behavior Date: Sat, 08 Mar 2014 10:04:37 -0800 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 This bug has been fixed in later versions of grep. I can reproduce the bug with grep 2.8 but not with grep 2.18, the current version.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]