From mboxrd@z Thu Jan 1 00:00:00 1970 From: rendaw <7e9wc56emjakcm@s.rendaw.me> Subject: Re: G-Expressions manual. change user shell in guix config.scm Date: Sat, 4 May 2019 20:36:46 +0900 Message-ID: References: <158abd9a-61d2-1b85-5227-c645cd556c02@s.rendaw.me> <47df8d6d-9d34-5abe-a7f7-c4f5a1c6a7f2@s.rendaw.me> <020ade7dd57cfe2182b3aa360a8cf13d@disroot.org> <768fb29d220fa00af3cb133b0909b870@disroot.org> <9345e08df01afe19f1fd987470e986d1@disroot.org> <2371498b43210a3afd0652c767214af9@disroot.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([209.51.188.92]:44740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <7e9wc56emjakcm@s.rendaw.me>) id 1hMsyK-0007Q7-1q for help-guix@gnu.org; Sat, 04 May 2019 07:36:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <7e9wc56emjakcm@s.rendaw.me>) id 1hMsyJ-0001z1-2I for help-guix@gnu.org; Sat, 04 May 2019 07:36:52 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:34735) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <7e9wc56emjakcm@s.rendaw.me>) id 1hMsyI-0001yZ-Ff for help-guix@gnu.org; Sat, 04 May 2019 07:36:51 -0400 In-Reply-To: <2371498b43210a3afd0652c767214af9@disroot.org> Content-Language: en-US List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: znavko@disroot.org, help-guix@gnu.org On 5/4/19 8:29 PM, znavko@disroot.org wrote: > I just want to change user shell. So i know how to do it. And you have cleared a bit for me what is formed object and what is file, and what is file-append function. > > May 4, 2019 11:24 AM, "rendaw" <7e9wc56emjakcm@s.rendaw.me> wrote: > >> On 5/4/19 8:19 PM, znavko@disroot.org wrote: >> >>> (shell #~#$dash) -- compiles too, but again: >>> >>> bob $ su - mom >>> Password: >>> /gnu/store/bqmib4vf9mr8dkqx4dqpcqrnb93giwci-dash-0.5.10.2: >>> /gnu/store/bqmib4vf9mr8dkqx4dqpcqrnb93giwci-dash-0.5.10.2: Is a directory >>> bob $ >> Could you perhaps provide some details on what you are expecting to >> happen here? This error is expected - shell needs a path to an >> executable, not a directory. Both `#~#$dash` and `dash` become paths to >> directories. (file-append obj "some string") is a convenient alternative to #~(string-append #$obj "some string"). In the latter "obj" becomes (for example) "/gnu/store/bqmib4vf9mr8dkqx4dqpcqrnb93giwci-dash-0.5.10.2", and "(string-append ...)" combines "/gnu/store/bqmib4vf9mr8dkqx4dqpcqrnb93giwci-dash-0.5.10.2" and "/bin/dash" to produce "/gnu/store/bqmib4vf9mr8dkqx4dqpcqrnb93giwci-dash-0.5.10.2/bin/dash"