Received: from fout-b3-smtp.messagingengine.com (fout-b3-smtp.messagingengine.com [202.12.124.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2DCA61DF980 for ; Fri, 19 Jun 2026 05:04:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.12.124.146 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781845492; cv=none; b=KprUIiQ3XMEQRAx/hDNmEJJOKLZeTHEtQL8xnGr3yxOrtM0L+TdSW+hbyxx+tKg8GReKI1TsE3Adu0I8njgL5WV7h00qUSU/aoPY+e4xlKOcHTfSl1JDZ71aNjqBZ69cWG4Lt70Rt3r/b3yEcgq/DtfybcoVE2OlbzLsyBfCwso= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781845492; c=relaxed/simple; bh=UfxsmTarbscX1dNOEeEgtP/z2/8yXHX/mFESk1X+030=; h=MIME-Version:Date:From:To:Cc:Message-Id:Subject:Content-Type; b=gYi0frqd2/XMxvlaK2WylslcmZKYFW3CobeFgFmFIoL9F6AYxpMquj3zZtiiKNH7H9jTwLkZQ7dlT/5KrFWZ9O+N/7LFpgw62U0rxixQ25vsdEAKHPmkgwrdh5b1s7kIFdqqBKd4O7cKFesbB6gxrKdIm646L/aSyCAsDjRUL+8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=plushkava.net; spf=pass smtp.mailfrom=plushkava.net; dkim=pass (2048-bit key) header.d=plushkava.net header.i=@plushkava.net header.b=JzJtTQtP; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=NDRcC+K7; arc=none smtp.client-ip=202.12.124.146 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=plushkava.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=plushkava.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=plushkava.net header.i=@plushkava.net header.b="JzJtTQtP"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="NDRcC+K7" Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfout.stl.internal (Postfix) with ESMTP id 252D41D0016E; Fri, 19 Jun 2026 01:04:49 -0400 (EDT) Received: from phl-imap-10 ([10.202.2.85]) by phl-compute-01.internal (MEProxy); Fri, 19 Jun 2026 01:04:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=plushkava.net; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to; s=fm2; t=1781845488; x= 1781931888; bh=81LIhzhJ/w31NMvotnBHQOIUKOzvYCwZ8yoP9PAu4cY=; b=J zJtTQtPFKjYrVubZdNOEizEOJaj46WJFgPlrG6/t0QXUhYccsHvdZ0YKPoXnSn7z KpQq4N35Pvss2j4HpIXWlQa0QNeYHMOYKyK33K5dXBrg0QtpE1BX9fDig/CaaKFP W3MQq4JgpNaz2K9lm/J5S6Mpqq/6LiZNFSj17tWcHWKxt7YYOsHPSMKrH5cEcjLy lGBaVnX8EbbD6db6Sq5TAc0Cx8HwnpJ1riiwI0XGdYHHINWoEOgKcuqCrFyQBRXs 7UicD491O0OAdyf7l8i9Aq9bow3HmH5FrqyRahfIkXNQY+CedlT4WVqaHO0Jp0jp 8fGPrSynAJnSc3KV/Uiqw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:message-id:mime-version:reply-to:subject :subject:to:to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1781845488; x=1781931888; bh=81LIhzhJ/w31NMvotnBHQOIUKOzv YCwZ8yoP9PA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Sjw X-ME-Proxy: Feedback-ID: i2431475f:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id ADB16216008A; Fri, 19 Jun 2026 01:04:48 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Precedence: bulk X-Mailing-List: dash@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Date: Fri, 19 Jun 2026 06:04:27 +0100 From: "Kerin Millar" To: dash@vger.kernel.org Cc: "Sam James" Message-Id: Subject: The read builtin erroneously consumes null bytes Content-Type: text/plain Content-Transfer-Encoding: 7bit Hi, Consider the following test case. It demonstrates NUL being consumed by the read builtin, rather than by cat(1) as it should have been. $ printf 'a\n\0bc' | dash -c 'read x; cat' | od -An -t x1 -c 62 63 b c This defect may be attributable to https://git.kernel.org/pub/scm/utils/dash/dash.git/tree/src/input.c?h=v0.5.13.4#n411. Incidentally, it results in tests #5510, #5558 and #6020 failing for git v2.54.0. -- Kerin Millar