From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id MN5DJtxdC2NyHgAAbAwnHQ (envelope-from ) for ; Sun, 28 Aug 2022 14:21:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 6A8UJtxdC2OCSgAAauVa8A (envelope-from ) for ; Sun, 28 Aug 2022 14:21:48 +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 442BE3DDA2 for ; Sun, 28 Aug 2022 14:21:48 +0200 (CEST) Received: from localhost ([::1]:48020 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oSHIR-0000n3-H8 for larch@yhetil.org; Sun, 28 Aug 2022 08:21:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48100) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSHI9-0000kv-7R for help-guix@gnu.org; Sun, 28 Aug 2022 08:21:29 -0400 Received: from knopi.disroot.org ([178.21.23.139]:59002) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSHI6-0002KY-BM for help-guix@gnu.org; Sun, 28 Aug 2022 08:21:28 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id F290040132; Sun, 28 Aug 2022 14:21:23 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Q4Od1xfgcNRi; Sun, 28 Aug 2022 14:21:23 +0200 (CEST) Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1661689283; bh=BrEh2FtmyBPp/DIGHMOJLeM885AtJQEu4ZT4bGFActc=; h=Date:To:Cc:Subject:From:References:In-Reply-To; b=IRNoD1xi3wfGpu8pyZTC/ill2xj96ZWvZtVfeh0Q+DbQwg5jgS9jrVj4tax5qwXHA uIevmi1rpQ5a3WvVJFeDUNVC93frb6+qKOlBlNzKQQB3tbqq9XcLbNpeHzpj0FQwn8 YdRlQik+D2SJclgQ7ApOBQRPSzDXIAItsd7dPCEfWFwdHoPEmGAqzXWGABL0h7ib/9 RIY1Pelsme10mxDV5q1cbb5ISQwQ6n26v9YgDjuPwWFYAWjZSgoD9ZUpRf0WpD4+Ca lveuxc3Gv88dXpcnle1bAKJbCE0fR6mwmjBLzAcj69g5khP62lAS4Q1jsUdVkKSKTd dqMXnYCNU9ulg== Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Sun, 28 Aug 2022 13:21:22 +0100 Message-Id: To: "Csepp" Cc: "jgart" , "Ricardo Wurmus" , Subject: Re: Am I doing it all wrong? From: "(" References: <20220827103401.GB11747@gac> <87k06twqrk.fsf@elephly.net> <20220827133836.GB31518@gac> <87y1v8r3ev.fsf@riseup.net> In-Reply-To: <87y1v8r3ev.fsf@riseup.net> Received-SPF: pass client-ip=178.21.23.139; envelope-from=paren@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 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, FROM_ONE_CHAR=0.699, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 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-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=1661689308; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=YScC0FUwq8CLalmKOEerulvSwzjam40pnvnIKDSY6hU=; b=e6N2IlWGPACzg0bUD5ejQkkFpFt3eGqtRxyzA00qs+EfnCDqR9t/4UioXSZ7xxyaJj1s7h z+VE2UHh0MqsoTjRRNPaNhi+z0S6zR1UUu4JzU8M/rtG+HSdB4T9QDYnVPkhW+dor9oiaG R6ayXa/e1SiooREhRsoH99m6onrfaHo7rNCc07HFAvNcAL51o7LdQQig6xpd3AbC9SI7G+ xIsK3HEkavhVYfoKKWwvFX4J9Jxo/amZ7sy5C1A2NNielsxB1AiMTMWmNOxukcY9YSjfFg oRQ5FGLR2JNwsO1OnTWtopxO7tMd5v9xxI6C5fTsEeiNphJCVtXiROsNh+2ulA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1661689308; a=rsa-sha256; cv=none; b=cLCiY9NHmBxsXXngKxJHCBLQCowl3gP+Wp789rWXHACFu5pCtuuSMyUmTp8VKTIaWDLU0t OwzPltr5l7wEkDxUp8puyJRcgPnZ4TqkuKOBD7P0gsh66d9GE7CGzmsbV+sGMTljVoHlnj lf1kLKM+oLIOHqoRJb5BYqsv+mfYSM1I1KPQLU+iyj9b4fesOB30DJxOwxr9DTfG5IJcYG 5xQQ8wvRH/a+n4gF7+r1J2BCeSufcpLima2cOn6SMeVtcsmlv0ZuKcerTbuxHnxY2zrTOC 2zDgZKTNJLNypM4lc4GgT9+6R0qEJxQ1k42yTEqRXhOd9ae/8HnNTEksgaCMEQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=IRNoD1xi; dmarc=pass (policy=quarantine) header.from=disroot.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -0.30 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=IRNoD1xi; dmarc=pass (policy=quarantine) header.from=disroot.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 442BE3DDA2 X-Spam-Score: -0.30 X-Migadu-Scanner: scn1.migadu.com X-TUID: aybzg1wsY9eC On Sun Aug 28, 2022 at 12:50 PM BST, Csepp wrote: > Did you test that one? Because I'm pretty sure it won't work, you > aren't passing the heredoc file descriptor to sh but guix shell. I hadn't tested it then, but I just did now, and it works. gsh -D guix lua < Also, that should probably be "$@", just in case. I don't think it'll make any difference; if, say, "foo" "bar" "baz" is passed, both $@ and "$@" will expand to "foo" "bar" "baz" (yes, bypassing the quotes). According to POSIX.1-2017's specification of `sh`: When the expansion occurs within double-quotes, the behavior is unspecifi= ed unless one of the following is true: + Field splitting [...] would be performed if the expansion were not with= in double-quotes [...]. + [...] So, $@ =3D=3D "$@". > Because Bash is garbage. :) I can't disagree on that one. :) -- (