From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id ACDcEuPN8mLEqwAAbAwnHQ (envelope-from ) for ; Tue, 09 Aug 2022 23:13:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id AA36EePN8mKDJwAAG6o9tA (envelope-from ) for ; Tue, 09 Aug 2022 23:13:07 +0200 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 aspmx1.migadu.com (Postfix) with ESMTPS id EE59713B7A for ; Tue, 9 Aug 2022 23:13:06 +0200 (CEST) Received: from localhost ([::1]:39910 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oLWXC-0000UD-6b for larch@yhetil.org; Tue, 09 Aug 2022 17:13:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39056) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLWX8-0000Tq-DD for bug-guix@gnu.org; Tue, 09 Aug 2022 17:13:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55539) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oLWX8-0007aB-4m for bug-guix@gnu.org; Tue, 09 Aug 2022 17:13:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oLWX7-0007yP-Vs for bug-guix@gnu.org; Tue, 09 Aug 2022 17:13:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#57090: [BUG] Default Notation for chmod in guix style? Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 09 Aug 2022 21:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57090 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: "(" Cc: 57090@debbugs.gnu.org, Christopher Rodriguez , Maxime Devos Received: via spool by 57090-submit@debbugs.gnu.org id=B57090.166007955230580 (code B ref 57090); Tue, 09 Aug 2022 21:13:01 +0000 Received: (at 57090) by debbugs.gnu.org; 9 Aug 2022 21:12:32 +0000 Received: from localhost ([127.0.0.1]:45288 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLWWe-0007x9-7s for submit@debbugs.gnu.org; Tue, 09 Aug 2022 17:12:32 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54310) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLWWc-0007wo-1i for 57090@debbugs.gnu.org; Tue, 09 Aug 2022 17:12:30 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:47408) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLWWW-0007YA-RU; Tue, 09 Aug 2022 17:12:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=Gd7z3aZcFnoi5uVs2dUw7fKkVit2ItFmHRy5NLR3+cc=; b=iDRPUBFpBCb4oIz2F6H4 nc6KF4EA8IN34+1ToFt1rDAZtNprQX9v8zs1KiTChT6BushJA/ybfscDQ+RVQQPrd1jLXo8YU0CTl QLpBR0W4r2WSgX+4eWIXWjHBxy8U+ZIbbjhOJHN1f/iiJZq92stjmnRSAF0vIBprPlS7C9/56wO43 5prNsRG0cJy6u8vC+8ljRMvHaPDqcNMf/ijg3I+cQCxBW5sFhbBdoXfP7VVWDXJhdeed+lvIwGPv5 RSWCvnb7NREzuJC47rTRGvOOhr//NrNPGLAFyqQNPZBM9E4V6njHmgUOL54PtdxS/O8Z3RqTAkAPt 6U1kvmNlTWU74g==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:50892 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLWWT-0007rd-Mm; Tue, 09 Aug 2022 17:12:24 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <878rnxi1it.fsf@gmail.com> <3f031a26-5835-e4ac-d8e5-ed725d8b1633@telenet.be> Date: Tue, 09 Aug 2022 23:12:20 +0200 In-Reply-To: (paren@disroot.org's message of "Tue, 09 Aug 2022 22:04:24 +0100") Message-ID: <87czd92kaz.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1660079587; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Gd7z3aZcFnoi5uVs2dUw7fKkVit2ItFmHRy5NLR3+cc=; b=VECOMKlN/lkYgwcoFxTB+BpfO0tEnDWXJboMca9FUgF3WVDlktQ7TtztOQMHN30i3JwGXD yWFMv5uLZ+P7IXb8pAx+nJL/lWDvO1ULHVf1Hzo6QD1uil0B17MGJzYr1sias86n0MDLi1 2vd0QZN1WuNtp1RWgAnM9q6xxUFEmc3W57zaQp6H3aJWCNNS+VXKL4vnXPxm5taGLr53Em CV734oDr5PpVeJnz0dEtkAB4d2RBrCsBFAfTWexwsAq6YqWP3AIRvxcRNa1kSuge9h6nXO O5oi9Lzig+vK8JBq0AEVMeQbzpJ8QFP+szzfqgeHpKw+hC2tlNkxuQd+CE89Cw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660079587; a=rsa-sha256; cv=none; b=b1mCCIVfUJ3woSTY6t/pbxBL5ulFqPp6ilhrVvWan59b0cl1TNFI59kOkubL8eTpuVh5Nt j5iN1IxnvrgOSevNJ63nNpQRYC1f03Th9jbUiKNklpU77e4Lnx0pzyK8V4QXzfJIxAe8Kz eeYC/INq8C/rWhBssRC9Qk2Dan7cEUZ8ee5uGIxsJN5Fb+5uHkdqE/s4WTX1kelNoHja7/ UzUIBFONOBL0aXOKXC24yR0H4CjNIyzGPyfBRvW2hLgdJM88YDcUaes5KN4Fw96quoa0Om l4ZbY9g3mUN0DfImeXRa7w34u15m7c5Wvrf6uXdfQSuYhe45GfbMDzcJNotbHA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=iDRPUBFp; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.79 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=iDRPUBFp; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: EE59713B7A X-Spam-Score: -2.79 X-Migadu-Scanner: scn1.migadu.com X-TUID: /MoTIGWnYgMs Hi, "(" skribis: > On Tue Aug 9, 2022 at 9:59 PM BST, Maxime Devos wrote: >> 'chmod' is not mentioned anywhere in (guix scripts style), so I'd think= =20 >> it's just an oversight. The authority on the matter would be Ludovic=20 >> Court=C3=A8s > > Is it possible that (guix read-print) stores octal numbers directly as > Scheme numbers, with no way to distinguish them from decimal numbers, > which means when they are printed they are just treated as base10? I > poked around a bit in the module but couldn't find the code for number > reading. Indeed, the reader is basically a wrapper around =E2=80=98read=E2=80=99. I= t preserves comments and vertical space, but it doesn=E2=80=99t attempt to preserve the style of numbers (base, etc.), strings (whether \n & co. are escaped or literal), and so on. I think that=E2=80=99d be a bit too much honestly. Now, we could tweak the pretty printer so that it recognizes patterns where numbers or strings should be printed in a certain way. Help welcome! :-) Ludo=E2=80=99.