bug-stow
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-stow] 'dot-' prefix and preexisiting directories


From: Black Lamb
Subject: [Bug-stow] 'dot-' prefix and preexisiting directories
Date: Fri, 02 Aug 2019 19:08:55 -0400
User-agent: Evolution 3.32.4

Stow version: 2.3.1
Perl version: 5.30.0
System information: Linux archlinux 5.2.4-arch1-1-ARCH #1 SMP PREEMPT Sun Jul 28 10:52:46 UTC 2019 x86_64 GNU/Linux

Bug Description: stow fails to link files within dot-directories when using 'dot-' prefix with the --dotfile option if the dot-directory already exists in the target directory
Commands (assume no .stowrc):
$ cd ~
$ mkdir .foo
$ mkdir dotfiles
$ cd dotfiles
$ mkdir -p foobar/dot-foo
$ touch foobar/dot-foo/bar
$ stow --dotfiles --verbose=3 foobar  # exit code 2
stow dir is /home/$USER/dotfiles
stow dir path relative to target /home/$USER is dotfiles
cwd now /home/$USER
cwd restored to /home/$USER/dotfiles
cwd now /home/$USER
Planning stow of package foobar...
Stowing contents of dotfiles/foobar (cwd=/home/$USER)
Stowing dotfiles / foobar / .foo
Stowing contents of dotfiles/foobar/.foo (cwd=/home/$USER)
stow: ERROR: stow_contents() called with non-directory path: dotfiles/foobar/.foo
$ mv foobar/{dot-foo,.foo}
$ stow --verbose=3 foobar  # works when not using 'dot-' preprocessing
stow dir is /home/$USER/dotfiles
stow dir path relative to target /home/$USER is dotfiles
cwd now /home/$USER
cwd restored to /home/$USER/dotfiles
cwd now /home/$USER
Planning stow of package foobar...
Stowing contents of dotfiles/foobar (cwd=/home/$USER)
Stowing dotfiles / foobar / .foo
Stowing contents of dotfiles/foobar/.foo (cwd=/home/$USER)
Stowing dotfiles / foobar / .foo/bar
LINK: .foo/bar => ../dotfiles/foobar/.foo/bar
Planning stow of package foobar... done
cwd restored to /home/$USER/dotfiles
Processing tasks...
cwd now /home/$USER
cwd restored to /home/$USER/dotfiles
Processing tasks... done

reply via email to

[Prev in Thread] Current Thread [Next in Thread]