Re: possible bug in Bash 5.0

2019-12-25 Thread Eli Schwartz
On 12/25/19 5:41 PM, Xin Wu wrote: > Hi, > > I found the single-bracket [ ... ] and double-bracket [[ ... ]] behave > differently for string comparison in the follow simple Bash-script. > > # comma (,) is before two (2) in ASCII > a=,rst > b=2rst > if [ "$a" \> "$b" ]; then >   echo "single-brack

possible bug in Bash 5.0

2019-12-25 Thread Xin Wu
Hi, I found the single-bracket [ ... ] and double-bracket [[ ... ]] behave differently for string comparison in the follow simple Bash-script. # comma (,) is before two (2) in ASCII a=,rst b=2rst if [ "$a" \> "$b" ]; then echo "single-bracket" fi if [[ "$a" > "$b" ]]; then echo "double-bra

Re: Unicode range and enumeration support.

2019-12-25 Thread Stephane Chazelas
2019-12-24 12:16:41 -0500, Eli Schwartz: [...] > > Also note that sort -u and sort | uniq are not quite the same, the -u > > option only considers the key fields when deciding which records (lines) > > are unique (of course, with no key options, the whole line is the key, > > in which case they are