Re: Inconsistent treatment of left-hand side of conditional expression where IFS is not its default value

2024-02-20 Thread Chet Ramey
On 2/18/24 5:03 PM, Kerin Millar wrote: Hi, This report stems from the discussion at https://lists.gnu.org/archive/html/help-bash/2024-02/msg00085.html. https://lists.gnu.org/archive/html/help-bash/2024-02/msg00102.html It has to do with ^A appearing in the result of a word expansion in a pl

Re: Inconsistent treatment of left-hand side of conditional expression where IFS is not its default value

2024-02-18 Thread Lawrence Velázquez
On Sun, Feb 18, 2024, at 5:03 PM, Kerin Millar wrote: > Hi, > > This report stems from the discussion at > https://lists.gnu.org/archive/html/help-bash/2024-02/msg00085.html. > > Consider the following two cases. > > $ ( set a -- b; f=+ IFS=$f; [[ $f$*$f == *"$f--$f"* ]]; echo $? ) > 0 > > $ ( set

Inconsistent treatment of left-hand side of conditional expression where IFS is not its default value

2024-02-18 Thread Kerin Millar
Hi, This report stems from the discussion at https://lists.gnu.org/archive/html/help-bash/2024-02/msg00085.html. Consider the following two cases. $ ( set a -- b; f=+ IFS=$f; [[ $f$*$f == *"$f--$f"* ]]; echo $? ) 0 $ ( set a -- b; f=$'\1' IFS=$f; [[ $f$*$f == *"$f--$f"* ]]; echo $? ) 1 It doe