From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: Re: bug#38529: Make --ad-hoc the default for guix environment proposed deprecation mechanism Date: Sat, 14 Dec 2019 19:11:57 +0100 Message-ID: References: <87eexeu8mo.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:34337) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igGRF-00037A-IW for guix-devel@gnu.org; Sat, 14 Dec 2019 18:03:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1igGRE-0003sF-Bj for guix-devel@gnu.org; Sat, 14 Dec 2019 18:03:05 -0500 Received: from mail-out.m-online.net ([212.18.0.10]:37872) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1igGRE-0003nV-04 for guix-devel@gnu.org; Sat, 14 Dec 2019 18:03:04 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 47Zwbh5yxcz1rfc7 for ; Sat, 14 Dec 2019 19:12:00 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 47Zwbh5rsMz1rhBD for ; Sat, 14 Dec 2019 19:12:00 +0100 (CET) Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 0ZpCpGuuaXGy for ; Sat, 14 Dec 2019 19:12:00 +0100 (CET) Received: from hermia.goebel-consult.de (ppp-188-174-63-83.dynamic.mnet-online.de [188.174.63.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for ; Sat, 14 Dec 2019 19:12:00 +0100 (CET) Received: from thisbe.goebel-consult.de (hermia.goebel-consult.de [192.168.110.7]) by hermia.goebel-consult.de (Postfix) with ESMTP id 84E2660122 for ; Sat, 14 Dec 2019 19:13:00 +0100 (CET) In-Reply-To: Content-Language: en-US List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Hi, > 4. if neither ad-hoc nor inputs-of present then > a. if GUIX_ENVIRONMENT_DEPRECATED is 1: do the current behaviour, > b. if GUIX_ENVIRONMENT_DEPRECATED is undefined, or is not 1: do the > new behaviour. One remark: I suggest the test to be "set to a non-empty string" resp. "unset or empty". This is the way many programs to such checks. In shell this would be `[ -n "$VAR" ] ` and `[ -n "$VAR" ]`. -- Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible |