Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 09 Jun 2022 17:24:17 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 264559] unexpand: nonconformantly (to both POSIX and heirloom) replaces single spaces with tabs, sometimes breaking reversibility
Message-ID:  <bug-264559-227-MyR4pAIwtX@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-264559-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-264559-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264559

--- Comment #2 from =D0=BD=D0=B0=D0=B1 <nabijaczleweli@nabijaczleweli.xyz> =
---
Some more, this time /exorbitantly/ broken:
  printf ' ermrxsmg \tjrjc ngsoo\n' | unexpand -t2          | cat -A
  printf ' ermrxsmg \tjrjc ngsoo\n' | unexpand -t4,55,68,78 | cat -A
give
  | ermrxsmg^I^Ijrjc ngsoo$
  |^Iermrxsmg^Ijrjc^Ingsoo$
whereas the correct output is
  | ermrxsmg ^Ijrjc ngsoo$
  | ermrxsmg ^Ijrjc ngsoo$

After reexpansion, the first one is fine:
  | ermrxsmg   jrjc ngsoo$
but the second one very obviously isn't:
  |    ermrxsmg                                           jrjc         ngso=
o$

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-264559-227-MyR4pAIwtX>