Re: Possible bug when overriding .stowrc options
Jean Louis <[email protected]> Mon, 19 Dec 2016 08:39:14 +0300
| Newsgroups | gmane.comp.gnu.stow.bugs |
|---|---|
| Message-ID | <[email protected]> |
Hello, I am using stow (GNU Stow) version 2.2.2. and I was using it as root, if it makes a difference. On Sun, Dec 18, 2016 at 10:59:54PM +0000, Adam Spiers wrote: > On Tue, Nov 29, 2016 at 02:17:32PM +0300, Jean Louis wrote: > > If I have option --target /usr in .stowrc, it is a possible bug, if I > > then wish to override the target with -t /usr/lib then it complains it > > is not stow target. > > > > But it is not logical that I need to delete .stowrc to be able to > > operate with different targets. > > I'm sorry but I can't reproduce this. And the code seems correct, > because the contents of .stowrc are simply prepended to the list of > CLI arguments before parsing all arguments via Getopt::Long's > GetOptions() function, in which later arguments override earlier ones. > > Please can you state the exact Stow version you are using, and give > the exact steps to reproduce a minimal test case? Thanks! I cannot reproduce it now too. It was with the picolisp being in /usr/lib <DEV> root [ /usr/lib ]# ls picolisp/ app/ CHANGES CREDITS dbg.l doc64/ ext.l img/ java/ lib.css loc/ misc/ pil src/ test/ bin/ COPYING cygwin/ doc/ ersatz/ games/ INSTALL lib/ lib.l man/ opt/ README src64/ <DEV> root [ /usr/lib ]# ls picolisp/^C <DEV> root [ /usr/lib ]# ls- ^C <DEV> root [ /usr/lib ]# ls -l |grep picolisp lrwxrwxrwx 1 root root 36 Nov 29 14:53 picolisp -> ../../package/prog/picoLisp/picolisp <DEV> root [ /usr/lib ]# cd /package/prog/ <DEV> root [ /package/prog ]# stow -t /usr/lib -D picoLisp/ Loading defaults from /root/.stowrc <DEV> root [ /package/prog ]# ls -l /usr/lib/picol^C <DEV> root [ /package/prog ]# stow -t /usr/lib picoLisp Loading defaults from /root/.stowrc <DEV> root [ /package/prog ]# ls -l /usr/lib/picolisp lrwxrwxrwx 1 root root 36 Dec 19 06:37 /usr/lib/picolisp -> ../../package/prog/picoLisp/picolisp <DEV> root [ /package/prog ]# cat /root/.stowrc --target=/usr <DEV> root [ /package/prog ]# stow -t /usr/lib picoLisp