bug-bash
[Top][All Lists]
Advanced

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

[[ ]] and [ ] tests not using the same ordering for strings.


From: Jesper Brix Rosenkilde
Subject: [[ ]] and [ ] tests not using the same ordering for strings.
Date: Tue, 30 Jul 2013 12:00:41 +0200

Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL
-DHAVE_CONFIG_H   -I.  -I../bash -I../bash/include -I../bash/lib
 -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector --param=ssp-buffer-size=4
-Wformat -Werror=format-security -Wall
uname output: Linux ace 3.8.0-26-generic #38-Ubuntu SMP Mon Jun 17 21:43:33
UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu

Bash Version: 4.2
Patch Level: 45
Release Status: release

Description:
When comparing ' a' with '0a' using the less than operator, using [ ] and
[[ ]] tests respectively gives different results.

Repeat-By:
[ ' a' \< '0a' ] && echo ok
[[ ' a' < '0a' ]] && echo ok


reply via email to

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