[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Conditional Regexp matching problem in 3.2
From: |
Chet Ramey |
Subject: |
Re: Conditional Regexp matching problem in 3.2 |
Date: |
Tue, 23 Jan 2007 16:55:02 -0500 |
> I don't get this; I must be missing something. If I do, in bash-3.1:
I get identical results with fully-patched versions of bash-3.1 and bash-3.2:
$ cat x17
V="alphabet"
[[ $V == alphabet ]] && echo yes 1
[[ $V == "alphabet" ]] && echo yes 2
[[ $V == 'alphabet' ]] && echo yes 3
[[ $V =~ alphabet ]] && echo yes 4
[[ $V =~ "alphabet" ]] && echo yes 5
[[ $V =~ 'alphabet' ]] && echo yes 6
$ ../bash-3.2-patched/bash ./x17
yes 1
yes 2
yes 3
yes 4
yes 5
yes 6
$ ../bash-3.1-patched/bash ./x17
yes 1
yes 2
yes 3
yes 4
yes 5
yes 6
$ ../bash-3.2-patched/bash --version
GNU bash, version 3.2.9(7)-release (powerpc-apple-darwin8.7.0)
Copyright (C) 2005 Free Software Foundation, Inc.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Live Strong.
Chet Ramey, ITS, CWRU chet@case.edu http://tiswww.tis.case.edu/~chet/