Re: "printf -v foo bar" sets $? to 1

2021-08-16 Thread Chet Ramey
On 8/14/21 7:56 PM, Keith Thompson wrote: > Bash Version: 5.1 > Patch Level: 4 > Release Status: maint > > Description: > The builtin "printf" command with the "-v" option works > correctly, but it reports failure by setting $? to 1. Thanks for the report. Chet -- ``The lyf

Re: "printf -v foo bar" sets $? to 1

2021-08-14 Thread Lawrence Velázquez
On Sat, Aug 14, 2021, at 7:56 PM, Keith Thompson wrote: > Bash Version: 5.1 > Patch Level: 4 > Release Status: maint > > Description: > The builtin "printf" command with the "-v" option works > correctly, but it reports failure by setting $? to 1. > > The problem was

"printf -v foo bar" sets $? to 1

2021-08-14 Thread Keith Thompson
Compilation CFLAGS: -g -O2 -Wno-parentheses -Wno-format-security uname output: Linux bomb20 5.4.0-80-generic #90-Ubuntu SMP Fri Jul 9 22:49:44 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux Machine Type: x86_64-pc-linux-gnu Bash Version: 5.1 Patch Level: 4 Release Status: maint Description: The