From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 4NYrCaGKVmOzxwAAbAwnHQ (envelope-from ) for ; Mon, 24 Oct 2022 14:52:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id uJwaCaGKVmNjNAAAauVa8A (envelope-from ) for ; Mon, 24 Oct 2022 14:52:49 +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 D2D2184D9 for ; Mon, 24 Oct 2022 14:52:48 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1omwu5-0007h4-Eu; Mon, 24 Oct 2022 08:50:05 -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 1omwu3-0007eU-Rd for help-guix@gnu.org; Mon, 24 Oct 2022 08:50:03 -0400 Received: from tobias.gr ([2a02:c205:2020:6054::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1omwu1-0004ef-Kx for help-guix@gnu.org; Mon, 24 Oct 2022 08:50:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=KQIAoYkPXTgcA GZQarvtaEo4YNolFS4n5XgKEZL4DSs=; h=in-reply-to:date:subject:cc:to: from:references; d=tobias.gr; b=N8TSn9kfyR7rHTAvH2KmzD8fUhihLtlZnaPLjH AO4b2ulbfsdwtW+vOYihqrcUURFqxwXwQ2m4i/9bS2g3J6iaOi+vtT1X8yntUCKytTOn+B HiCoRm/4pJdGeS/XiY8XC3oFC1J1l92ncq3iyHkIW7H0B6KI9hYYYHWrQWchBu/A7WUEIX Na6yvJth6DveO4v1n1aVxU+R+kaGLeKOZdcSVywkFOtSk/YFNCU63W8mRBFeJMvbXL3IFs PBzEmOW2uZjW616zf25niU6s2DIjs5ulMtAZ7qXjt0UzYzPvJTsKXaiOoljWdbVtI4UTqk UiYKBn34nu51CxwAPB7EvFgQ== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 8be00081 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Mon, 24 Oct 2022 12:49:50 +0000 (UTC) References: <4fbca18c-d448-d3ec-916f-b9d078988940@posteo.de> From: Tobias Geerinckx-Rice To: Gottfried Cc: help-guix@gnu.org Subject: Re: export LC_ALL=C Date: Mon, 24 Oct 2022 14:40:20 +0200 In-reply-to: <4fbca18c-d448-d3ec-916f-b9d078988940@posteo.de> BIMI-Selector: v=BIMI1; s=default; Message-ID: <87zgdll72i.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@tobias.gr; helo=tobias.gr X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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: , Sender: "Help-Guix" Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666615968; 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:dkim-signature; bh=KQIAoYkPXTgcAGZQarvtaEo4YNolFS4n5XgKEZL4DSs=; b=LpqC1eLagbeX0d5aj9PkypLlzLPA2Ra9serozMmMyTRVRBtHg8wUq/5MpH2PhYKFbxqdUL W9xBx0f6nPGEVcy905ed/oTTiuDbRJAscFyItMdGHmQBr6UJl/Ff9sgOsC85op82JzR0ob c3h9eRirBIDdha/eu6kSPWo2r5pezqmKPFubx/DEMWxtc3/NrzHfizovlgNS8Cmhz3cAlB eCCwV/PxzJJEtpKOsZPSfK872erHILbalQBQl/NT7UAtuXdFC6H2MlbxxtLaWp+j4wYjkU i0p6fJSBjNXkrzKO9gyQ+1xPe+9e+VN1N/2hl8N15w0xGoIiZiPPZtHHLmDNWw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666615968; a=rsa-sha256; cv=none; b=jzFWjgddEOMQy0BqvS51NGQTiAusR2O8rjRdwKDCIym30fPuxIe4QXmXpdyDPdw2CimlMq V8yxPZ+a+AifT1Y/cqoNUvm+SIYQRJ9DqSQIgXwH2vOqg9uFvBgMnt1L2N/3uCprUVgfLG f2h5yT72m02WGzJHqof8z+LE7A+EsmU1Q0QgtLMKgRng3SqH2V8JVbv8aaKKDsBgxAINB3 yobnGR+MYzf7hP6gzl93Sm8eUTelqfm5oZ7anNseoHTBhkGDHAfxmeMRnELlA0yfVwHdhQ Uz9XbsOH31utY5TCsFtLpdkDQ708cLANOXhjByrFwUtLpjHMnIJs+TBEvbESVg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=tobias.gr header.s=2018 header.b=N8TSn9kf; dmarc=pass (policy=reject) header.from=tobias.gr; 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: -8.80 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=tobias.gr header.s=2018 header.b=N8TSn9kf; dmarc=pass (policy=reject) header.from=tobias.gr; 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: D2D2184D9 X-Spam-Score: -8.80 X-Migadu-Scanner: scn0.migadu.com X-TUID: qJ/waOrTK8xU --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Hi Gottfried, I hope this strikes the right balance between explaining=20 =E2=80=98environment variables=E2=80=99 from scratch and answering your imm= ediate=20 question. Gottfried =E5=86=99=E9=81=93=EF=BC=9A > 1. Will this now overwrite my variables for ever, or only for=20 > some time? Environment variables are not saved. They can be *set* by=20 configuration files, such at /etc/profile, but these files are not=20 updated when you type =E2=80=98export GUIX=3Dawesome=E2=80=99 on the comman= d line. Setting LC_ALL like this affects your current shell, and it will=20 be inherited by child processes (hence why the =E2=80=98guix=E2=80=99 child= will=20 speak English after setting LC_ALL=3DC in the parent shell), but=20 they exist purely in RAM for the lifetime of each process. The also do not propagate to ancestor or sibling processes:=20 setting LC_ALL in one terminal window has no effect on any other=20 windows. Nor will setting LC_ALL in a shell affect new processes=20 you launch elsewhere, such as from your desktop menu. Only child=20 processes launched in the same shell/window will inherit it. As soon as you close that terminal, type =E2=80=98exit=E2=80=99 in the (gui= x)=20 shell, or trip over your power cable, the setting is gone. > 2. How can I set it back to my original state? Environment variables have no built-in notion of history, or=20 defaults. They are just variables, and setting them to something=20 new overwrites the old value (if any). So: ~$ echo $LC_ALL # yours will be de_DE, I presume en_IE.utf8 ~$ LC_OLD=3D$LC_ALL # save the old value ~$ export LC_ALL=3DC # in with the new ~$ echo $LC_ALL # do the thing C ~$ LC_ALL=3D$LC_OLD # restore the old value But really, in practice, I'd just close the window/shell once=20 done=E2=80=A6 they are so cheap. Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCY1aJ9Q0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW15I+gBAIX3SA28+jD6oC7Igq5EhVpJgkCjQElUewcp72fT dAXeAP91nDqnueTIvxhXSDwnatzWuSaPWXXQhoMbyVL2EcMDCw== =BBp1 -----END PGP SIGNATURE----- --=-=-=--