bug-stow
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-stow] Possible bug when overriding .stowrc options


From: Adam Spiers
Subject: Re: [Bug-stow] Possible bug when overriding .stowrc options
Date: Mon, 19 Dec 2016 09:37:49 +0000
User-agent: Mutt/1.6.2 (2016-07-01)

On Mon, Dec 19, 2016 at 08:39:14AM +0300, Jean Louis wrote:
Hello,

I am using stow (GNU Stow) version 2.2.2. and I was using it as root,
if it makes a difference.

It doesn't.

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

OK good.  If you see it again in the future please save the exact
steps and let me know here :-)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]