From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id GG4hIX21QmQ8eQEASxT56A (envelope-from ) for ; Fri, 21 Apr 2023 18:10:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id YEsQIX21QmR+8QAA9RJhRA (envelope-from ) for ; Fri, 21 Apr 2023 18:10:37 +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 1C79828865 for ; Fri, 21 Apr 2023 18:10:37 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=posteo.net header.s=2017 header.b=eQpTBx7L; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1682093437; 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=WJvox0oB+qYma8y2T7S+bcn6R29qR653ilWbpniUdqg=; b=gqyUbzMx1TghlIyLH0dM/6j/MXsOyTGxR4B6nq6aSoxTwpArWhsCq4fW9tFrSRBtuKDLJC SNo6uC10ekdEreTrsmyTORDjgol+4CLxDGvfz5ERneT7NhK0Ni20gzJKGVA4bJKpuK0Wby 3Dycm1UvfSBlpkH5yqnCUZ6y/whU4XrQ66qisFGADHoAz3qUcuKfyVpsZ138ISk8Qimizv anKuzXHsIrXkjX9DVa+KwxI2YnZdy4yyVEepO/XwOdiKteHl8Wmzk7tlpWHZ0bQzK/C/pc iWh3PrGjcyH9WN47oKl0Bd3vb1xVsQa6mmMyYdnRc3AfnSlLQ8fngl1pmjPtZw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=posteo.net header.s=2017 header.b=eQpTBx7L; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682093437; a=rsa-sha256; cv=none; b=TVms7Vd7C/lpZmRtqnUKdd/cG2FWr+tEGG9SC2S4SymlOSJDdb0z+xSJIVel9ADKExbL+m j5KHnjSQTtyb1euTNtxGQOG+M2BTL+SRvRVRhInwklosM14SQc/JGk35VoAllCqFC9usJb ZcIjPIczn6xkcxZ1DAQTGEq+1EwuYQr/Sf8F33W3D3fAOCdST4aTyMroMr2ufGEwvKsHas J/99rfrENdz2MTfQsR5J5DmzLXQtcg/gcMUY2+jWI4bOs4yi4FgUFJy3D4CpExWudyUQs8 eMlJeNZtZhiVGksB/9MRZuIZAxH7MwkSRapt7OzzEtzGky25KzCqp9FjcuUwmA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ppsvs-0003Ff-8F; Fri, 21 Apr 2023 11:44:20 -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 1ppsvq-0003FP-PT for help-guix@gnu.org; Fri, 21 Apr 2023 11:44:18 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ppsvo-0000DJ-Ta for help-guix@gnu.org; Fri, 21 Apr 2023 11:44:18 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id ED634240296 for ; Fri, 21 Apr 2023 17:44:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1682091855; bh=2g2CY//CYAMMXKZF24e4/LG/e8lOTiE/xY4QVH/iVXo=; h=Date:From:To:CC:Subject:From; b=eQpTBx7LyjdU0k/oHK79NEQQ2RSGCvuMAAhby+BqCcjFF4+NGhmEoy80JMF1d8g8Z yxnYDl+xtxzzB5IZc/rkD54dyoKXxqxNo8PbLIq1B9Gr+5jUizt0yLH3PlVuESMRGn ejJ9oLl0Y0F5CQamiznrfny2MEOcJEs/KlcqjLt5M9Hynj33nzQEVJ6/dMoRjI/yKa dFNy4TD44DO4TXI8AAZaiokTOJ2Hbh2b6/uaIbhffIAjarkQK99+jSC3PBR6RH8dlx 8j+flZpAmu+tyOMztUpFxx05m8tPtzLva6VC051n+LTH01xOOgNT6G81JkttJWcUQa mUPg+vBGT7Cmw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Q2zNF6k4cz9rxN; Fri, 21 Apr 2023 17:44:13 +0200 (CEST) Date: Fri, 21 Apr 2023 15:44:09 +0000 From: Kyle To: Maxim Cournoyer CC: help-guix@gnu.org Subject: Re: Alternatives to --emulate-fhs on foreign distros In-Reply-To: <87ttxayank.fsf@gmail.com> References: <87cz407482.fsf@posteo.net> <87ttxayank.fsf@gmail.com> Message-ID: MIME-Version: 1.0 Received-SPF: pass client-ip=185.67.36.66; envelope-from=kyle@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, 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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: UNKNOWN X-Migadu-Spam: Yes X-Migadu-Spam-Score: 8.44 X-Spam-Score: 8.44 X-Migadu-Queue-Id: 1C79828865 X-Migadu-Scanner: in3.migadu.com X-Spam: Yes X-TUID: 86L/tzwzcm2w Dear Maxim,=20 Unfortunately, I don't see /usr/bin/env when I look inside the file system= resulting from: guix shell coreutils --container I don't understand how to apply "system" configuration to a guix shell con= tainer other than crudely through --emulate-fhs=2E Since noone has needed i= t so far, maybe that's not that helpful if /bin/bash was made available? On April 20, 2023 8:56:47 AM EDT, Maxim Cournoyer wrote: >Hi Kyle, > >Kyle Andrews writes: > >> Dear Guix, >> >> The (many) shell scripts in my software depend on bashisms=2E In the >> code right now I typically use /usr/bin/env bash since I had read that >> was the most portable way of referencing a shell=2E However, I really >> don't think I have a good handle on what my choices are=2E Maybe the >> tedious solution of just typing `bash script=2Esh' in all of the system >> calls referencing this scripts might be the right approach in the long >> run? > >Use /usr/bin/env=2E It's available on all mainstream distributions, and >it's also available on Guix System, so it should work everywhere=2E > >--=20 >Thanks, >Maxim