这是indexloc提供的服务,不要输入任何密码
Skip to content

mkrc -S not working as intended if nested directories #296

@0xn1h1Lo

Description

@0xn1h1Lo

Hello,

I did not use rcm in a while as I had a stable setup and I cannot recall whether that was an issue before. I have a structure with my dotfiles under .local/dotfiles and I use quite heavily .local, for instance .local/wallpapers. I wanted to add this folder and I just cannot get it to just symlink the directory with the -S option. This works as intended if directly in $HOME. I tried various combinations of -U, etc. I replicated the issue on OpenBSD and Fedora:

$ mkdir .test
$ touch .test/file
$ mkrc -vS -t test .test
Moving...
'$HOME/.test' -> '$HOME/.local/dotfiles/tag-test/test'
Linking...
'$HOME/.local/dotfiles/tag-test/test' -> '$HOME/.test'
$ ls -l .test
.test -> $HOME/.local/dotfiles/tag-test/test

And

$ mkrc -vS -t test .local/test
Moving...
'$HOME/.local/test' -> '$HOME/.local/dotfiles/tag-test/local/test'
Linking...
'$HOME/.local/dotfiles/tag-test/local/test/file' -> '$HOME/.local/test/file'
$ ls -l .local
test
$ ls -l .local/test
file -> $HOME/.local/dotfiles/tag-test/local/test/file

I really think that this used to work? Maybe I'm mistaken but I certainly have other symlinked folders and I don't recall this issue. Perhaps created thinks by hand

Thanks for a great piece of software!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions