Re: bug#65659: RFC: changing printf(1) behavior on %b

2023-09-02 Thread Stephane Chazelas via austin-group-l at The Open Group
2023-09-01 23:28:50 +0200, Steffen Nurpmeso via austin-group-l at The Open Group: [...] > |FWIW, a "printf %b" github shell code search returns ~ 29k > |entries > |(https://github.com/search?q=printf+%25b+language%3AShell&type=code&l=Sh\ > |ell) > | > |That likely returns only a small subset

[Issue 8 drafts 0001771]: support or reserve %q as printf-utility format specifier

2023-09-02 Thread Austin Group Bug Tracker via austin-group-l at The Open Group
A NOTE has been added to this issue. == https://austingroupbugs.net/view.php?id=1771 == Reported By:calestyo Assigned To: ===

Re: [Issue 8 drafts 0001771]: support or reserve %q as printf-utility format specifier

2023-09-02 Thread Robert Elz via austin-group-l at The Open Group
Date:Sat, 2 Sep 2023 09:01:06 + From:"Austin Group Bug Tracker via austin-group-l at The Open Group" Message-ID: | If we don't deprecate %b now, the alternative is to deprecate it in Issue 9 Why? I don't mean why is that not a consequent of the condition,

Re: bug#65659: RFC: changing printf(1) behavior on %b

2023-09-02 Thread Steffen Nurpmeso via austin-group-l at The Open Group
Stephane Chazelas wrote in <20230902084912.vdfedsgbnat2w...@chazelas.org>: |2023-09-01 23:28:50 +0200, Steffen Nurpmeso via austin-group-l at The \ |Open Group: ... |>|FWIW, a "printf %b" github shell code search returns ~ 29k |>|entries |>|(https://github.com/search?q=printf+%25b+language%3

Re: bug#65659: RFC: changing printf(1) behavior on %b

2023-09-02 Thread Robert Elz via austin-group-l at The Open Group
Date:Fri, 1 Sep 2023 07:15:14 -0500 From:"Eric Blake via austin-group-l at The Open Group" Message-ID: | > That is dependant on the current value of $IFS. You'd need: | > | > xsi_echo() ( | > IFS=' ' | > printf '%b\n' "$*" | > ) | | So yes, the

Re: bug#65659: RFC: changing printf(1) behavior on %b

2023-09-02 Thread Stephane Chazelas via austin-group-l at The Open Group
2023-09-03 08:27:58 +0700, Robert Elz via austin-group-l at The Open Group: [...] > The SysIII echo (abomination) can be done using printf %b independant > of IFS: > > echo() { printf '%b ' "$@"\\n\\c; } > > works. Nice, though has the same limitation as my bash echo -e "$*\n\c" $ echo()