-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Andreas Kohlbach wrote:
> On Tue, Sep 04, 2007 at 02:48:25PM -0700, Micah Cowan wrote:
>> Hrvoje Niksic wrote:
>>> Micah Cowan <[EMAIL PROTECTED]> writes:
>>>
>>>> As Josh points out, the question remains whether this should be our
>>>> behavior; I vote yes, as command-line arguments should always override
>>>> rc files, in general. Of course, these values could well have come from
>>>> .wgetrc and not the command-line; but even so,
>>>> more-specific-to-our-application should override general, so .wgetrc
>>>> still wins over .netrc.
>>> I think .netrc was considered more specific because it can provide
>>> passwords on a per-machine basis, which .wgetrc can't.
>> Okay, that seems pretty reasonable. Perhaps we should leave this as-is,
>> then, and revisit this when we've introduced host/path-specific
>> configuration.
> 
> I'd say command line option shall always win against anything else. And
> usually it does everywhere as far as I know.
> 
> If the current behavor stays as-is, may be the methode
> 
> | wget ftp://user_name:[EMAIL PROTECTED]
> 
> should be mentioned as workaround in the wget man page?

(I'm assuming you meant to Cc this to the list? Apologies if this is not
the case)

Yes, but such usage won't apply recursively for such things as http (and
perhaps not even for ftp if reconnection occurs; I'm not sure).

You're right of course that command-line is more specific (and yet,
.netrc can still specify with more granularity), and more likely to
represent what the user wants for this invocation. However, since if we
"fix" this now (which would be slightly complicated), we'll just have to
re-fix it when host/path-specific config is introduced, I think I'd
probably prefer to punt it for now until a real fix may be applied.

- --
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer...
http://micah.cowan.name/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG3d/j7M8hyUobTrERCJ3QAJsGAUtuLtxh0FtFh8jjDpmmqVn6VACfczQr
5anlPFOCgvJS7zJOBT5EVYE=
=lOVq
-----END PGP SIGNATURE-----

Reply via email to