aspiers / stow

GNU Stow - mirror of savannah git repository occasionally with more bleeding-edge branches
http://www.gnu.org/s/stow/
GNU General Public License v3.0
650 stars 41 forks source link

`stow --simulate` should show `--adopt` actions #81

Closed ilyagr closed 3 years ago

ilyagr commented 3 years ago

Currently, running stow --simulate does not report files that would be adopted with --adopt. For example,

$ mkdir -p stow/test && cd stow
$ echo Text > ../file
$ touch test/file
$ stow --adopt test --simulate
WARNING: in simulation mode so not modifying filesystem.

No actions that stow would perform are reported, even though actually running stow --adopt test would adopt the file file:

$ stow -v --adopt test
MV: file -> stow/test/file
LINK: file => stow/test/file
ilyagr commented 3 years ago

Never mind. I realized --simulate is useless without -v.

tarikwaleed commented 2 years ago

got the error stow: ERROR: slashes are not permited in package names when using `stow --simulate -v --target=/path/to/target/tree /path/to/source/tree what wrong I'm doing??