--ignore=<regex>
我放入的行.stowrc
不起作用。运行 Stow 时,它显示“从 .stowrc 加载默认值”,但它没有任何效果。但是将--ignore=<regex>
行传递给命令直接有效。
假设这个目录:
user@user-machine:~/test-stow/stow$ tree -a
.
??? a
? ??? car
??? .stowrc
1 directory, 2 files
Run Code Online (Sandbox Code Playgroud)
内容./.stowrc
:
--ignore='car'
Run Code Online (Sandbox Code Playgroud)
所以我的期望是,stow --verbose=3 a/
在该目录中运行命令等同于stow --ignore='car' --verbose=3 a/
在./.stowrc
文件不存在的情况下运行。
现在我运行:
user@user-machine:~/test-stow/stow$ stow --verbose=3 a
Loading defaults from .stowrc
stow dir is /home/user/test-stow/stow
stow dir path relative to target /home/user/test-stow is stow
cwd now /home/user/test-stow
cwd restored to /home/user/test-stow/stow
cwd now /home/user/test-stow
Planning stow of package …
Run Code Online (Sandbox Code Playgroud)