From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 4BBjGlo9zV7eQAAA0tVLHw (envelope-from ) for ; Tue, 26 May 2020 16:01:30 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id cC0fFlo9zV6gdQAAbx9fmQ (envelope-from ) for ; Tue, 26 May 2020 16:01:30 +0000 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 E33149402D1 for ; Tue, 26 May 2020 16:01:28 +0000 (UTC) Received: from localhost ([::1]:59688 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdc17-00027q-LW for larch@yhetil.org; Tue, 26 May 2020 12:01:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51722) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdbzq-0001VZ-B6 for help-guix@gnu.org; Tue, 26 May 2020 12:00:06 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:46919) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdbzo-0004Gx-Et for help-guix@gnu.org; Tue, 26 May 2020 12:00:05 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 3613A5C0108; Tue, 26 May 2020 12:00:03 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Tue, 26 May 2020 12:00:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.net; h= from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm3; bh=KXMjfBNgUTCydS6FEadihBj4kH NKni+SO6JcVksWqIA=; b=N4/iIjlmG4L18HkbPMB6SKbWv28iU+KEH4iMDa/mhT bNZ6dKa1pNoeXqRAZ+2LsIGeXiY7Nj8f1KQ+FJNcGyaj4t81SYLZZTV2sHnJxO2g jhBZym8pMdH14SXbc1DIaE2kgi5zdLDD/4Iie7uvFfES1H2c87lr5xrLdgzXX0cA LCVNjwsNfPtrM1kgeCcQMCX+7xfLUSNpmrhcPHUg/OwgLmEu2IE0OLN6EprcY0l8 0g5bv3d+rOKJTpm9CBTp2FWp1l3Fyl/UlWCR45QiQaxja6hKW+ZtVpFfyipgXwIy XgWPuTOBuQRDD+T0b0yFWPGqN7cwNVe5sZaFDMaB4qDw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=KXMjfB NgUTCydS6FEadihBj4kHNKni+SO6JcVksWqIA=; b=u8KO2cMZbXTw4vKO0SCsqi v9mFbeGS2LMSi2UHUqCVz81h9tBjP/nUwhEMQoW8AhnNH5o1WBMj8ivnnStbg0KQ c49OSmyFa/F1ouBppko8e0eg+HGQFTbCr8uFEzCNW1mti3XRF1KPTRg+7QaxAjdQ M6ofdWoYwJQ8A6ZR07ETKHkBy5ghkr8a1Ia1UAPF4BJil0VfVUB+MR7Xqu+wPNkU TBl+YMbzPd3RDUmqEV5EzRws4Kw+WY5YPdBz6Vr3MF4GPBKNyGPTTUqBgy4145sY EYMkkAkDz1qf8P7VKR6B5WgdA3AvIzbXv0JfwCT5LQAcBeH2tvMZd//oUIvYMZsQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedruddvvddgleehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufgjfhffkfggtgesthdtredttddttdenucfhrhhomhepmfhonhhrrggu ucfjihhnshgvnhcuoehkohhnrhgrugdrhhhinhhsvghnsehfrghsthhmrghilhdrnhgvth eqnecuggftrfgrthhtvghrnhepieekjeejveeuieefjeehtdegtefhudetgfevfffhueeh jeevieeigedvhfdtieefnecukfhppeelvddrudeiledrudejfedrvddvheenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehkohhnrhgrugdrhhhi nhhsvghnsehfrghsthhmrghilhdrnhgvth X-ME-Proxy: Received: from khs-macbook.home (lfbn-idf2-1-1364-225.w92-169.abo.wanadoo.fr [92.169.173.225]) by mail.messagingengine.com (Postfix) with ESMTPA id 01D2B328005E; Tue, 26 May 2020 12:00:01 -0400 (EDT) From: Konrad Hinsen To: Guix Help Subject: Re: Appropriate way to use Guix API from a Guile program In-Reply-To: References: <17234059da3.b5e01d1e8240.9032082708652182693@zoho.com> <878shla245.fsf@devup.no> <17238fa6f3f.1085042d523521.3962992471488424781@zoho.com> <87tv0980yc.fsf@devup.no> Date: Tue, 26 May 2020 18:00:00 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=66.111.4.25; envelope-from=konrad.hinsen@fastmail.net; helo=out1-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/26 12:00:03 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=fastmail.net header.s=fm3 header.b=N4/iIjlm; dkim=fail (rsa verify failed) header.d=messagingengine.com header.s=fm2 header.b=u8KO2cMZ; dmarc=fail reason="SPF not aligned (relaxed)" header.from=fastmail.net (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: CfhUm4BzR9oh Konrad Hinsen writes: > Unfortunately, it doesn't look as straightforward as I thought. > A standard Guile script retrieves command line arguments using > (command-line). "guix repl" should ideally manipulate the return > value of (command-line) to make things just work, but I haven't > found a way to do this. Reading the Guile manual helps, of course, once you know where to look. It's (set-program-arguments ...), which starts to make sense once you figure out that (program-arguments) is a synonym for (command-line). I'll see if I can do something with that. Cheers, Konrad