Re: Possible bug when overriding .stowrc options

Adam Spiers <[email protected]> Sun, 18 Dec 2016 22:59:54 +0000
Newsgroups gmane.comp.gnu.stow.bugs
Message-ID <[email protected]>
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!