From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on starla X-Spam-Level: X-Spam-Status: No, score=-0.9 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 63DC61F545 for ; Sat, 1 Jul 2023 00:02:42 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qFO4A-0008Ji-1H; Fri, 30 Jun 2023 20:02:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qFO3v-0008HU-8T for bug-coreutils@gnu.org; Fri, 30 Jun 2023 20:02:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qFO3u-0006oF-S6 for bug-coreutils@gnu.org; Fri, 30 Jun 2023 20:02:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qFO3u-000641-7N for bug-coreutils@gnu.org; Fri, 30 Jun 2023 20:02:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#64390: cksum: cannot --check untagged sums file Resent-From: Christoph Anton Mitterer Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Sat, 01 Jul 2023 00:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64390 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 64390@debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168816967123251 (code B ref -1); Sat, 01 Jul 2023 00:02:02 +0000 Received: (at submit) by debbugs.gnu.org; 1 Jul 2023 00:01:11 +0000 Received: from localhost ([127.0.0.1]:55979 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFO34-00062x-Nd for submit@debbugs.gnu.org; Fri, 30 Jun 2023 20:01:11 -0400 Received: from lists.gnu.org ([209.51.188.17]:48910) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFO33-00062o-38 for submit@debbugs.gnu.org; Fri, 30 Jun 2023 20:01:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qFO32-0008FI-S5 for bug-coreutils@gnu.org; Fri, 30 Jun 2023 20:01:08 -0400 Received: from purple.birch.relay.mailchannels.net ([23.83.209.150]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qFO30-0006QK-Pq for bug-coreutils@gnu.org; Fri, 30 Jun 2023 20:01:08 -0400 X-Sender-Id: instrampxe0y3a|x-authuser|calestyo@scientia.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 114A6260D2D for ; Sat, 1 Jul 2023 00:00:22 +0000 (UTC) Received: from cpanel-007-fra.hostingww.com (unknown [127.0.0.6]) (Authenticated sender: instrampxe0y3a) by relay.mailchannels.net (Postfix) with ESMTPA id C39972621EA for ; Sat, 1 Jul 2023 00:00:18 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1688169619; a=rsa-sha256; cv=none; b=ux7aguYUrGouDeGFPBWdXnqXX0wEUQmJPf0wjq5wKFUEnn232x3x11kDM3jFsUD8w1ngs3 7m18QgTxLQ/kHtD+0wV1wfsIT/ki1iOJ6lJMSOtHavO6lP/J6C7mC+PWLHk042Db6pMnmg NQfj6piSyoXLbBR+aK6OL+a+GbSx71dlrzB204PzIxDpseL0xSAAI4fciyCvdFDgpUDEj5 DQYzsRBgP4ugUgyH6ypqYQtD7v33c6gXZVPYg7QrC/JBKBP4h4BB2peArHnUGvivDaRSda xNYGri/CofPJdRHT+X7IL+yYBaxFgbg2+wipOwtRs9AGJba6CKQxuQGvEb+6AQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1688169619; 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; bh=sxMEOX3bf346mIpXlt/rZEVD+w8hpgJ/IvvKEMM4HI8=; b=JIjm/LNK24O3FSnxjBSMPt/4rpmPMSXVcReUd35jEoKPhM9ToDd2kn4r1SGh51uFK8gds4 VuIy1Fyo5ynNoL/n0wyAibkGbic8SaVoSJHrLsZvttzyqxGTOHaOnQ9Q0WOY4Io4UIfpHz wEO5IMkIwHtwLeBEpmD6dEp0SPC22PD5aiz2kRyChrdSi1BeFCeXhwGuU/W/6dvB+vn0ic /9nbW94BjNWR+jqldJXdw9AYIjijGRVqpoQco1aDJDQoetFy/KXL9NgBF+FWQdYygNh8jK H/iHVPNrwB/ffHObeHkNs6+z6pRutEpSZGIEQKSJIGQiux97c0+GBXIGPFec2A== ARC-Authentication-Results: i=1; rspamd-9fcc56855-ggqjw; auth=pass smtp.auth=instrampxe0y3a smtp.mailfrom=calestyo@scientia.org X-Sender-Id: instrampxe0y3a|x-authuser|calestyo@scientia.org X-MC-Relay: Neutral X-MailChannels-SenderId: instrampxe0y3a|x-authuser|calestyo@scientia.org X-MailChannels-Auth-Id: instrampxe0y3a X-Little-Coil: 4cb60a3655e18377_1688169621341_4073220911 X-MC-Loop-Signature: 1688169621341:287980037 X-MC-Ingress-Time: 1688169621341 Received: from cpanel-007-fra.hostingww.com (cpanel-007-fra.hostingww.com [3.69.87.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.116.217.230 (trex/6.9.1); Sat, 01 Jul 2023 00:00:21 +0000 Received: from p57b04b11.dip0.t-ipconnect.de ([87.176.75.17]:39414 helo=heisenberg.fritz.box) by cpanel-007-fra.hostingww.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qFO2A-00Cict-1b for bug-coreutils@gnu.org; Sat, 01 Jul 2023 00:00:16 +0000 Message-ID: <0e7c9aec4c056d254f3a045154edcf1a89467a48.camel@scientia.org> From: Christoph Anton Mitterer Date: Sat, 01 Jul 2023 02:00:11 +0200 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.3-1 MIME-Version: 1.0 X-AuthUser: calestyo@scientia.org Received-SPF: pass client-ip=23.83.209.150; envelope-from=calestyo@scientia.org; helo=purple.birch.relay.mailchannels.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-coreutils@gnu.org List-Id: GNU coreutils Bug Reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-coreutils-bounces+normalperson=yhbt.net@gnu.org Sender: bug-coreutils-bounces+normalperson=yhbt.net@gnu.org Hey. At least as of 9.1 (on Debian), it seems that cksum cannot --check a sums file in the untagged style: $ touch a b $ cksum -a sha512 --tag * > sums.tagged $ cksum -a sha512 --untagged * > sums.untagged $ cat sums.tagged=20 SHA512 (a) =3D cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36c= e9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e SHA512 (b) =3D cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36c= e9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e $ cat sums.untagged=20 cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d8= 5f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e a cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d8= 5f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e b 3423932033d74d924ebe77f281d9694b1fa98103ed38b4634a06759c08b63a4fd96783dfaae= 8e1acedc53e36129d461a5757ccf3903f5bf64242cd78d305c473 sums.tagged $ cksum -c sums.tagged=20 a: OK b: OK $ cksum -c sums.untagged=20 cksum: sums.untagged: no properly formatted checksum lines found $ cksum -c sums.untagged --tag cksum: sums.untagged: no properly formatted checksum lines found $ cksum -c sums.untagged --untagged cksum: sums.untagged: no properly formatted checksum lines found $=20 Not sure whether it should try to auto-determine the format... I guess it would be possible, as long as no algorithm name every uses a-zA-Z0-9 as starting letter. But I rather tend to think it would be a bad idea to do so. However, it should be possibl to use --tag or --untagged to specify a format. Thanks, Chris.