*_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 ?