From nobody Tue Jan 9 18:43:44 2024 X-Original-To: dev-commits-src-main@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 4T8fw16Snrz56Cr0; Tue, 9 Jan 2024 18:43:45 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4T8fw152mZz4ZFx; Tue, 9 Jan 2024 18:43:45 +0000 (UTC) (envelope-from kevans@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704825825; 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=yarCYYJdDDb0pAsYIBZCUrwMmqXJ3aLC53zh8Mkbd98=; b=wt4QCJWeRuFHMgDJy50CAwEED/ud+VYlVcacbAkbooH7xomIJnIBRIOd2l3cqRhQlbo/L0 uzTXpqq0v6bA13zR6H642M7YlGbTbZ67Yy27mwE5T5H63WAEK8UHXleWISAUrJ8iBZ381O ElY2cdPKtg3Ual92UD7dnvaOFNiG80umCRMZAFI5fcvd44hXgUtk4qD9uaLiLMkp+TmOgH BEDZAfVU51BmEM17CwhcSa+qNSY/XnxSG/TrFTtJNx4eTU6fd3i7vxhhd30PdKFBuDn9PI Df3lp1+pZn1G25kRuX66HbxE2fJ46QC1mgkHzehuXpqwZp9RKtQq14ps6O60hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704825825; 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=yarCYYJdDDb0pAsYIBZCUrwMmqXJ3aLC53zh8Mkbd98=; b=Ri2LeIn55vPlUUNHac66yHTzu217J+168VF36mk9VvipCq1rkR1j+u6adzW0XzbCVXPVGO 1Oss/qpLkBVQoQfC3Ol7yW9YwV5TFfMhL8jqqFjJFL5lH316QI/4i3NhK1wP9YgkOQrIFU 6EM5AYwJYujAWa5Opz9CxCHKjTKLByD/8KfkaPXRWyqY5F3gZrTTmqdJvK6HYrqBnJzInl veNz2uctGSvVXjJmvC8NBzq03fsPQYziB+eO36esVrSj5lJqBrOG3dzlx6Wf45X9yphHRN Vi0gqaY1/O8dAeCXwQYPxFdgN4XVde8S8D9qyiZjnFPJYnfp5Q/iYksIh1Y+zg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704825825; a=rsa-sha256; cv=none; b=kA9SaZJht7O3UEImIt8ISeNP44unJE28O6h5mp0kXVbXZl6bvzRvW55bGXY+RW76FU4BKn hCuaG9LhGIvDceU5ILetT1YDyTX395zW1uE4HulbQ2ymgzZ/qVM35Qp29iAM/RHiDxMafM v44DisT+3Pth6zrQ3PNfx6etyaHSHI5bXSIe4ODexC+Qmn6emHDP89kByh/ebbpX4OKdQ0 IvS6nhi5oA7MA0Cs3msJl/GALJZlRywXCbwtxA/Q9cicGnlvQB5LEaql8n9PCIEIDII6gG oeQgW81L+HZNxMQ3B+CM3J2g/2n93FZHOX06lAbSauN6xLBJqF9LxV59Z4I/2A== Received: from [10.9.4.95] (unknown [209.182.120.176]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) (Authenticated sender: kevans/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4T8fw1203qzVDQ; Tue, 9 Jan 2024 18:43:45 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Message-ID: <637f3964-c65e-42cf-97a1-342e9447cd69@FreeBSD.org> Date: Tue, 9 Jan 2024 12:43:44 -0600 List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: git: c2356a440db9 - main - asa: Rewrite to fix line termination issue. Content-Language: en-US To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org References: <202401091627.409GRcI0028831@gitrepo.freebsd.org> <20240109180554.UYZwm9Yl@steffen%sdaoden.eu> From: Kyle Evans In-Reply-To: <20240109180554.UYZwm9Yl@steffen%sdaoden.eu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 1/9/24 12:05, Steffen Nurpmeso wrote: > Dag-Erling Smørgrav wrote in > <202401091627.409GRcI0028831@gitrepo.freebsd.org>: > |The branch main has been updated by des: > | > |URL: https://cgit.FreeBSD.org/src/commit/?id=c2356a440db91c106867d45c94b\ > |3d6d7bc0e50f0 > | > |commit c2356a440db91c106867d45c94b3d6d7bc0e50f0 > |Author: Dag-Erling Smørgrav > |AuthorDate: 2024-01-09 14:09:41 +0000 > |Commit: Dag-Erling Smørgrav > |CommitDate: 2024-01-09 16:27:15 +0000 > | > | asa: Rewrite to fix line termination issue. > | > | The standard is somewhat unclear, but on the balance, I believe \ > ... > | - Second, it unconditionally emits a newline at the end of the output > | for non-empty input, even if the input did not end with a newline. > ... > > I want to point out that POSIX only knows about text files which > end with a LF newline. Otherwise it is not a text file. (I think > Stallman and emacs joke on this by allowing something else, iirc > from before Y2K when i shortly used it, and, funnily, from some > thread on another ML just last week or so, where it was claimed > that this could have roots in emacse not rooting in UNIX.) > It notably defines a text file as zero or more lines, and doesn't say anything about incomplete lines -- just that none of the lines contain NUL characters. One can conclude without further information that a trailing LF is not at all required in any circumstance, it's just an incomplete line.