Re: Problems applying patches

2008-11-20 Thread Dan
 > I haven't posted them here yet, but they are available.  I didn't 
use them

because you said you had a problem with 37.

Chet


Oh, I see. Well, it seems to be OK now, at least in terms of applying 
the patches to the code using Stephane's instructions - I understand 
what's going on there now.


"make test" fails some of the tests at patch level 39 and patch level 
48. I'll investigate a bit more as I've only tried it on one of my Linux 
systems and post details if I can't work out what the problem is.


Dan





Is this a bash wildcard bug?

2008-11-20 Thread grendelos

So this is really bugging me.  Why is [a-z] not case sensitive, but [A-Z] is? 
For example:

# ls -l
total 0
-rw-r--r-- 1 root root 0 Nov 20 12:22 xa
-rw-r--r-- 1 root root 0 Nov 20 12:22 xA

# ls -l x[a-z]
-rw-r--r-- 1 root root 0 Nov 20 12:22 xa
-rw-r--r-- 1 root root 0 Nov 20 12:22 xA

# ls -l x[A-Z]
-rw-r--r-- 1 root root 0 Nov 20 12:22 xA

Any ideas?

grendelos
-- 
View this message in context: 
http://www.nabble.com/Is-this-a-bash-wildcard-bug--tp20608511p20608511.html
Sent from the Gnu - Bash mailing list archive at Nabble.com.





Re: Is this a bash wildcard bug?

2008-11-20 Thread Matthew Woehlke

grendelos wrote:
So this is really bugging me.  Why is [a-z] not case sensitive, but [A-Z] is? 
For example:


# ls -l
total 0
-rw-r--r-- 1 root root 0 Nov 20 12:22 xa
-rw-r--r-- 1 root root 0 Nov 20 12:22 xA

# ls -l x[a-z]
-rw-r--r-- 1 root root 0 Nov 20 12:22 xa
-rw-r--r-- 1 root root 0 Nov 20 12:22 xA

# ls -l x[A-Z]
-rw-r--r-- 1 root root 0 Nov 20 12:22 xA

Any ideas?


Yes. Your assumptions are wrong.

[a-z] = [aAbBcCdD...xXyYz]
[A-Z] = [AbBcCdDe...XyYzZ]

Now... see why that gives the results you are seeing?

This is FAQ #1 regarding locales (sorry, no links handy, but GIYF). If 
you want the expected (case-sensitive) behavior, try 'export LC_ALL=C'.


--
Matthew
Please do not quote my e-mail address unobfuscated in message bodies.
--
C++ is for people who want to be able to not just shoot themselves in 
the foot, but do it with a rocket launcher. -- Igor Peshansky





Re: Problems applying patches

2008-11-20 Thread Dan
"make test" fails some of the tests at patch level 39 and patch level 
48. I'll investigate a bit more as I've only tried it on one of my Linux 
systems and post details if I can't work out what the problem is.


Dan



So I tried building it on Fedora 9 and it built with no problems (up to 
and including patch level 48). "make test" produced a few warnings, but 
all of them were along the lines of "ignore this warning if there 
differences are only in whitespace" or containing the phrase "please do 
not consider this a test failure".


So on Fedora it's fine. I'll look at what's up on Xandros later.

Thanks again for all your help guys.





Re: Is this a bash wildcard bug?

2008-11-20 Thread Matthew Woehlke

Matthew Woehlke wrote:

grendelos wrote:
So this is really bugging me.  Why is [a-z] not case sensitive, but 
[A-Z] is? For example:


# ls -l
total 0
-rw-r--r-- 1 root root 0 Nov 20 12:22 xa
-rw-r--r-- 1 root root 0 Nov 20 12:22 xA

# ls -l x[a-z]
-rw-r--r-- 1 root root 0 Nov 20 12:22 xa
-rw-r--r-- 1 root root 0 Nov 20 12:22 xA

# ls -l x[A-Z]
-rw-r--r-- 1 root root 0 Nov 20 12:22 xA

Any ideas?


Yes. Your assumptions are wrong.

[a-z] = [aAbBcCdD...xXyYz]
[A-Z] = [AbBcCdDe...XyYzZ]


Oops, and I should have added that this depends on the locale. Very 
likely it is correct in this instance (perhaps omitting vowels with 
accents/etc that might also be in the set). But hopefully the idea - 
i.e. that the range '[a-z]' includes 'A' but not 'Z', and that '[A-Z]' 
includes 'z' but not 'a' - is clear.



Now... see why that gives the results you are seeing?

This is FAQ #1 regarding locales (sorry, no links handy, but GIYF). If 
you want the expected (case-sensitive) behavior, try 'export LC_ALL=C'.


--
Matthew
Please do not quote my e-mail address unobfuscated in message bodies.
--
C++ is for people who want to be able to not just shoot themselves in 
the foot, but do it with a rocket launcher. -- Igor Peshansky





Re: Is this a bash wildcard bug?

2008-11-20 Thread Chris F.A. Johnson
On 2008-11-20, grendelos wrote:
>
> So this is really bugging me.  Why is [a-z] not case sensitive, but [A-Z] is? 
> For example:
>
> # ls -l
> total 0
> -rw-r--r-- 1 root root 0 Nov 20 12:22 xa
> -rw-r--r-- 1 root root 0 Nov 20 12:22 xA
>
> # ls -l x[a-z]
> -rw-r--r-- 1 root root 0 Nov 20 12:22 xa
> -rw-r--r-- 1 root root 0 Nov 20 12:22 xA
>
> # ls -l x[A-Z]
> -rw-r--r-- 1 root root 0 Nov 20 12:22 xA
>
> Any ideas?

You are using a locale that conflates upper- and lowercase as
aAbBcC...yYzZ.

Try it with: export LC_ALL=C

-- 
   Chris F.A. Johnson, webmaster 
   ===
   Author:
   Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)