From: Janneke Nieuwenhuizen <janneke@gnu.org>
To: paul <goodoldpaul@autistici.org>
Cc: "Ludovic Courtès" <ludo@gnu.org>,
"Sergey Trofimov" <sarg@sarg.org.ru>,
68857@debbugs.gnu.org, andrew@trop.in
Subject: [bug#68857] [PATCH] gnu: home: dotfiles: Avoid creating extra directory in $HOME.
Date: Wed, 07 Feb 2024 09:37:30 +0100 [thread overview]
Message-ID: <878r3wd60l.fsf@gnu.org> (raw)
In-Reply-To: <87cyt8d7hu.fsf@gnu.org> (Janneke Nieuwenhuizen's message of "Wed, 07 Feb 2024 09:05:33 +0100")
Janneke Nieuwenhuizen writes:
> paul writes:
>
> Hi Paul,
>
>> could you try whether this patch solves
>> https://issues.guix.gnu.org/68848 for you?
>
> Yes, that fixes it. Although I would rather write it something like
>
> (define (strip file-name)
> (let ((dotfile-name (string-drop file-name (+1 (string-length directory)))))
Err that should have been 1+, of course, so
--8<---------------cut here---------------start------------->8---
(define (strip file-name)
(let ((dotfile-name (string-drop file-name (1+ (string-length directory)))))
(match (string-split dotfile-name #\/)
((package parts ...)
(string-join parts "/")))))
--8<---------------cut here---------------end--------------->8---
--
Janneke Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond https://LilyPond.org
Freelance IT https://www.JoyOfSource.com | Avatar® https://AvatarAcademy.com
next prev parent reply other threads:[~2024-02-07 8:38 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-31 22:15 [bug#68857] gnu: home: dotfiles: Avoid creating extra directory in $HOME paul via Guix-patches via
2024-01-31 22:17 ` [bug#68857] [PATCH] " Giacomo Leidi via Guix-patches via
2024-02-07 0:54 ` paul via Guix-patches via
2024-02-07 8:05 ` Janneke Nieuwenhuizen
2024-02-07 8:37 ` Janneke Nieuwenhuizen [this message]
2024-02-16 17:16 ` paul via Guix-patches via
2024-02-16 18:57 ` Sergey Trofimov
2024-02-16 17:17 ` [bug#68857] [PATCH v2] gnu: home: dotfiles: Properly support both plain and Stow directory layouts Giacomo Leidi via Guix-patches via
2024-02-20 9:37 ` [bug#68857] gnu: home: dotfiles: Avoid creating extra directory in $HOME Ludovic Courtès
2024-02-20 18:38 ` paul via Guix-patches via
2024-02-27 10:17 ` Ludovic Courtès
2024-02-27 11:30 ` Giacomo Leidi
2024-02-27 11:32 ` paul via Guix-patches via
2024-02-27 12:35 ` [bug#68857] [PATCH v3] gnu: home: dotfiles: Properly support both plain and Stow directory layouts Giacomo Leidi via Guix-patches via
2024-03-04 15:46 ` [bug#68857] gnu: home: dotfiles: Avoid creating extra directory in $HOME Ludovic Courtès
2024-03-06 20:51 ` paul via Guix-patches via
2024-03-06 20:52 ` [bug#68857] [PATCH v4] gnu: home: dotfiles: Properly support both plain and Stow directory layouts Giacomo Leidi via Guix-patches via
2024-03-06 22:15 ` bug#68848: bug#68857: gnu: home: dotfiles: Avoid creating extra directory in $HOME Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878r3wd60l.fsf@gnu.org \
--to=janneke@gnu.org \
--cc=68857@debbugs.gnu.org \
--cc=andrew@trop.in \
--cc=goodoldpaul@autistici.org \
--cc=ludo@gnu.org \
--cc=sarg@sarg.org.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.