On 2017-03-10 12:17+0100, Tim Ruehsen wrote: > On Thursday, March 9, 2017 5:47:00 PM CET Félix Sipma wrote: >> Hi! >> >> Would it be possible to add an environment variable to set the location of >> the hsts-file (by default set to "~/.wget-hsts"), in addition to the >> existing --hsts-file mechanism? > > You are aware that you can put all options as 'commands' into a config file !? > The default is ~/.wgetrc but you can override it with WGETRC env variable. > If that isn't enough, you can override the above with --config=<file> (or > --no- > config).
No, I didn't know that, thanks! There appear to be no mention of WGETRC on the Debian sid version of wget. >> It would help, to have a home free of configuration and data files. I try to >> use $XDG_CONFIG_HOME and $XDG_DATA_HOME, but as wget does not seem to use >> these variables yet, it would probably be simpler to just add an >> environment variable for the hsts-file. > > Use WGETRC and specify 'hstsfile' in that config file to point somewhere > outside > the home dir. OK. I found no documentation about this 'hstsfile' command, though. https://www.gnu.org/software/wget/manual/wget.html#Startup-File It's hard to see if the config is valid or not, or even if it is read, as wget does not seem to return error if I set "hsts_file", for example. -- Félix Sipma
signature.asc
Description: PGP signature
