From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id OKCLHrihP2RHZgAASxT56A (envelope-from ) for ; Wed, 19 Apr 2023 10:09:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id qOaYHrihP2Rz9AAAauVa8A (envelope-from ) for ; Wed, 19 Apr 2023 10:09:28 +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 047ED27B73 for ; Wed, 19 Apr 2023 10:09:28 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pp2s9-0004Ip-QU; Wed, 19 Apr 2023 04:09:01 -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 1pp2s8-0004Ie-Oz for help-guix@gnu.org; Wed, 19 Apr 2023 04:09:00 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pp2s6-000422-Or for help-guix@gnu.org; Wed, 19 Apr 2023 04:09:00 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id AE8542120; Wed, 19 Apr 2023 10:08:55 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at hera.aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KlQyuNAH1Yhk; Wed, 19 Apr 2023 10:08:55 +0200 (CEST) Received: from jurong (unknown [IPv6:2001:861:c4:f2f0::c64]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 00137211D; Wed, 19 Apr 2023 10:08:54 +0200 (CEST) Date: Wed, 19 Apr 2023 10:08:53 +0200 From: Andreas Enge To: Kyle Andrews Cc: help-guix@gnu.org Subject: Re: Alternatives to --emulate-fhs on foreign distros Message-ID: References: <87cz407482.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87cz407482.fsf@posteo.net> Received-SPF: pass client-ip=185.233.100.1; envelope-from=andreas@enge.fr; helo=hera.aquilenet.fr 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, SPF_HELO_PASS=-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: 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1681891768; a=rsa-sha256; cv=none; b=h0/EC4HHD0c6wEs+bTHBqZTYHJmIB5Is6hDVA76mB+MLaDVRAg29IppQK6h7OsfuXdRKdM jvi0BUJ7oC9Tw8iFxQ4st2agxErkRFpErH3ipqfqOAlAyocnx0N7OIqIGsRR2nwC4F3u+O ACWYIy+frCEUYFJkj+2b/ogA4fl4ZBw7jKx/eKxQJKvL1NQNfVna8N1uXyYDfJ20DlYRYf 9eoM7GlMBxlc4A8hOq2AxoQ+0gsFtjpPTUZsjW8n49IsM2jC/g8gJIAersqfN1TFdAkiJt C8BiMaBsVxe/GHpSV50T/jgMJRY8fPGfuoefmRTb+JwkpoLfI3Vl11v7YdFRGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1681891768; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=waFhdU6jpMnCt6L+viCSTPaYzbMj2Vsovr+k9g2ZLJc=; b=jOF0R4SZ/KA/VW5vkzZDTm+uNJ+/HyhQAjmpSLOUYeyd8meXdXXeCFGf4v/MZMlAzqRmdJ cnboscR+q0eqbLQIA9WdK6bL14nh8EgoenS03TV6AIW9ok2v96gIPwMknSq+GJimpTVEwn eQiGXF/CBFOJ/GC3+KnlSJNeKQPIa3oQmvH0+ircRmhV4Xd3tIqY7HhH9n/mIzzIfLBroa YxGo6C2sFhJY4bLUPfdXD9QAO8xejvC9+Sa/KN6ejvdInEGKqWsXF5KP+GhqjjURrMhft2 UBHsP1IJCTTFTr+L70Co7unVGicRLpn/J+PO/AJTq5Y1xMAusiYR6tJP/56B4A== X-Migadu-Spam-Score: -1.31 X-Spam-Score: -1.31 X-Migadu-Queue-Id: 047ED27B73 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=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"; dmarc=none X-TUID: GkLgOTNz+pwc Hello, Am Wed, Apr 19, 2023 at 06:18:33AM +0000 schrieb Kyle Andrews: > I'm curious what other options might be. The main bashism I use is default environment variables ${FOO:-bar}. On a native Guix system I could just add /usr/bin/env back in. However, that doesn't seem to be possible with only Guix shell. Maybe I am wrong here? as an exception to the rule, a Guix system contains /bin/sh, which on my machine looks like this: $ ll /bin lrwxrwxrwx 1 root root 2 5. Nov 2019 bash -> sh lrwxrwxrwx 1 root root 61 17. Apr 09:51 sh -> /gnu/store/d99ykvj3axzzidygsmdmzxah4lvxd6hw-bash-5.1.8/bin/sh $ ll /gnu/store/d99ykvj3axzzidygsmdmzxah4lvxd6hw-bash-5.1.8/bin -r-xr-xr-x 2 root root 951344 1. Jan 1970 bash -r-xr-xr-x 1 root root 6791 1. Jan 1970 bashbug lrwxrwxrwx 1 root root 4 1. Jan 1970 sh -> bash So everything is bash in the end, but I do not know whether bash behaves differently if it is called under the name "sh". You could give it a try. Andreas