From nobody Thu Jun 9 17:24:17 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id E7F7385026D for ; Thu, 9 Jun 2022 17:24:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LJrYY5B2bz4hVv for ; Thu, 9 Jun 2022 17:24:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 925371AC for ; Thu, 9 Jun 2022 17:24:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 259HOHP7065960 for ; Thu, 9 Jun 2022 17:24:17 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 259HOHTf065959 for bugs@FreeBSD.org; Thu, 9 Jun 2022 17:24:17 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f 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 Date: Thu, 09 Jun 2022 17:24:17 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: nabijaczleweli@nabijaczleweli.xyz X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654795457; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=s48eSBIzAelEWR+htS1t8BvJDE9Sfz4BTvxMLyqxlaM=; b=hQGoT73yChC4Dmg0l2pX8O+loMSfJ8ckgg8zo3Uyl481rr8Ox922iH0qBDxphqT9Dv31qC l3DE9U/oNTlYPZjq6n+mHmU+AXZGnluAOvCOpPPuDZeDML6rUlgfxFj8xX7h78n4FuLMFv fAiJIFjzRjs80wOohF95m5AB8gtbK6EXVOPY9xAEB1a3NEFkOqv8kB8npUu0OSG+asJeAK ATDBjjwwPW8R5QRR30GfsipOTAPB8ga4nXPiHR7+XSdH0jhJZyGVoFL4noIQRcz9U63oa1 +ZiS9wJD1/oAb6+lGRluraOojh07j0IwgbRLjrek1gGIyg3AkdKiu8VITrlUug== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1654795457; a=rsa-sha256; cv=none; b=oqzOzUqtC0AyeUBrXWDPShCjGgkKWzIvV7R7w7wp1MvaX4uNKNiavhEt5VS7qMFJUaT57o XXbm/Ejka62s1D9amb/iLzYB9LYGgKRI0CwwwnWe8T/JoUvx2L2zs0CbAp/+Vo1oDjqu8Y Q6MZOdydlm8RLN8/8VhHPr++j9sOsjcaP3qZc/g1S0gYdFg3Iy8H0y5ut5fVOsd7xIaM3k /jXj6eIBzVsY6x93KcEs8MuPr4KUXhvPses/+KZm/Of+W4E1loPrFluJiVpWdeQ1YJ31Ou 6VqmE1UZOefpkkMXV7bNQ66vce0Gq+WdqX/puwg8sPBcl1n23/LJtUmjlxjRzQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264559 --- Comment #2 from =D0=BD=D0=B0=D0=B1 = --- 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.=