小编Gui*_*ern的帖子

Stow 不使用 rc 文件中给出的“忽略”选项

概括

--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)

stow rc

5
推荐指数
1
解决办法
860
查看次数

标签 统计

rc ×1

stow ×1