[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#49419] [PATCH 1/4] home-services: Add most essential home services
From: |
Andrew Tropin |
Subject: |
[bug#49419] [PATCH 1/4] home-services: Add most essential home services |
Date: |
Mon, 05 Jul 2021 19:19:39 +0300 |
Maxime Devos <maximedevos@telenet.be> writes:
> Hi,
>
> Andrew Tropin schreef op ma 05-07-2021 om 18:37 [+0300]:
>> + (if (file-exists? (he-init-file new-home))
>> + (let* ((port ((@@ (ice-9 popen) open-input-pipe)
>> + (format #f "source ~a && env"
>> + (he-init-file new-home))))
>> + (result ((@@ (ice-9 rdelim) read-delimited) "" port))
>> + (vars (map (lambda (x)
>> + (let ((si (string-index x #\=)))
>> + (cons (string-take x si)
>> + (string-drop x (1+ si)))))
>> + ((@@ (srfi srfi-1) remove)
>> + string-null?
>> + (string-split result #\newline)))))
>
> Why are you using @@ here? 'open-input-pipe', 'read-delimited' and 'remove'
> are exported variables, so you can just use @ instead of the magic evil @@
> operator.
Because of a bad habbit, I needed it once and after that started to use
it uncoditionally. It should be @, thanks for pointing!
BTW, how to add changes to the patches? Do I need to resend a
particular patch with required updates or have to wait other reviews and
send a v2 patch series?
signature.asc
Description: PGP signature
[bug#49419] [PATCH 2/4] home-services: Add home-run-on-change-service-type, Andrew Tropin, 2021/07/05
[bug#49419] [PATCH 3/4] home-services: Add home-provenance-service-type, Andrew Tropin, 2021/07/05
[bug#49419] [PATCH 4/4] home-services: Add fold-home-service-types function, Andrew Tropin, 2021/07/05
[bug#49419] [PATCH v2 0/4] Essential home services, Andrew Tropin, 2021/07/13