unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / Atom feed
* bug#51918: home-bash-service-type adds the defaults and aliases to the end of the file
@ 2021-11-17  9:30 Andrew Tropin
  0 siblings, 0 replies; only message in thread
From: Andrew Tropin @ 2021-11-17  9:30 UTC (permalink / raw)
  To: 51918; +Cc: Xinglu Chen

[-- Attachment #1: Type: text/plain, Size: 1109 bytes --]

Test in guix-home.sh looks correct, but it fails:
https://git.savannah.gnu.org/cgit/guix.git/tree/tests/guix-home.sh?h=5eb5c0789f34e87ee417a53ddfcfa3b6521bb337#n98

Seems something changed in home-bash-service-type, for some reason it
adds the serialized content of aliases field and guix-bashrc variable
after the content of bashrc field.

Original implementation works as expected and adds the content of bashrc
to the end of ~/.bashrc.

--8<---------------cut here---------------start------------->8---
(list
 ((@ (gnu services) service)
  (@ (gnu home-services shells) home-bash-service-type)
  ((@ (gnu home-services shells) home-bash-configuration)
   (guix-defaults? #t)
   (bashrc (list "echo hi"))))
 ((@ (gnu services) simple-service)
  'test-bash
  (@ (gnu home-services shells) home-bash-service-type)
  ((@ (gnu home-services shells) home-bash-extension)
   (bashrc (list "echo very hi")))))
--8<---------------cut here---------------end--------------->8---

https://git.sr.ht/~abcdw/rde/tree/master/item/gnu/home-services/shells.scm

-- 
Best regards,
Andrew Tropin

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 853 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-17  9:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-17  9:30 bug#51918: home-bash-service-type adds the defaults and aliases to the end of the file Andrew Tropin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).