Bug#1012545: coreutils: unexpand: nonconformantly (to both POSIX and heirloom) replaces single spaces with tabs

2022-06-10 Thread наб
Hi! On Thu, Jun 09, 2022 at 07:16:10PM +0200, наб wrote: > Similar case but I think slightly different: > printf ' ermrxsmg \tjrjc ngsoo\n' | unexpand -t2 | cat -A > printf ' ermrxsmg \tjrjc ngsoo\n' | unexpand -t4,55,68,78 | cat -A > output > | ermrxsmg^I^Ijrjc ngsoo$ > |

Bug#1012545: coreutils: unexpand: nonconformantly (to both POSIX and heirloom) replaces single spaces with tabs

2022-06-09 Thread наб
Similar case but I think slightly different: printf ' ermrxsmg \tjrjc ngsoo\n' | unexpand -t2 | cat -A printf ' ermrxsmg \tjrjc ngsoo\n' | unexpand -t4,55,68,78 | cat -A output | ermrxsmg^I^Ijrjc ngsoo$ | ermrxsmg^Ijrjc ngsoo$ whereas the correct output is | ermrxsmg ^Ijrjc