bug-wget
[Top][All Lists]
Advanced

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

Re: [Bug-wget] export wget history varible


From: Ander Juaristi
Subject: Re: [Bug-wget] export wget history varible
Date: Tue, 29 Mar 2016 18:31:31 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.5.0

*_HISTORY environment variables were used by convention by *interactive* applications (applications that offer their own CLI with their own commands) to establish the path of the history file. These applications often used GNU readline to read commands from the user, and the management of the history file was also handled by readline itself. That's why many interactive applications mimicked the behavior, because it was easy to implement - readline handled it for you.

Since wget is not an interactive command there's no need for such an environment variable. It is well suited in your examples: the MySQL client, scapy and python feature a built-in CLI, but it's not the case for wget. As Tim said, your shell is likely to store the latest commands in a history file for you. If you really want to store your history in ~/.history/wget, then append 'export HISTFILE=~/.history/wget' to your ~/.bashrc. But again, that's out of the scope of wget.

<OFF-TOPIC>
I am working on a (limited) interactive wget that accepts some commands from the user and allows autocompletion of links and other goodies, but that's still work in progress [1], and if some day sees the light, it will be as part of wget2, the next major release. I'll discuss this with the maintainers when the time comes, this is not the right thread. I'm expecting to finish it during summer.
</OFF-TOPIC>

The bottom line is that current wget is not interactive and so there's no need for that feature.

[1] https://github.com/juaristi/wget2/tree/wget2-interactive-mode

On 29/03/16 11:01, VendForce Security wrote:
I want to put all the console history files in one place

In mysql you can do
export MSQL_HISTFILE=~/.history/mysql
and the history file is created and stored

I can so this with mysql, bash, python, postgres, scapy

How can I do it with wget in linux using the $HOME/.bashrc

I've tried

export WGET_HISTORY=~/.history/wget
export WGET_HIST=~/.history/wget
export WGET_HIST=~/.history/wget

scapy devs have made a commit, so I'm only left with wget now. The rest
have or had  enviroment varible for export history

is there varible for history ?




reply via email to

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