Harry Putnam wrote:
John W. Krahn jwkr...@shaw.ca writes:
Harry Putnam wrote:
I'm not sure what these errors are telling me.
The script is supposed to remove dups from .bash_history
Wouldn't it be simpler to set HISTCONTROL to ignoredups:
export HISTCONTROL=ignoredups
Or:
export
2009/10/19 Harry Putnam rea...@newsguy.com:
use File::Copy;
Dermot commented:
It might be best to put this at the top of your script with all the
other loadable modules your using.
Harry asks:
Do you think it would make a difference in how the script behaves? Or
do you mean for the sake
John W. Krahn jwkr...@shaw.ca writes:
I'm on a single user machine at home. I'm thinking I could just write
to /tmp/BashHistoryDeDup.tmp with the `' flag, overwriting on each
run and forget unlinking
That could be a security hole. Even though you have a single user
machine it is always
I'm not sure what these errors are telling me.
The script is supposed to remove dups from .bash_history but not
operate on the last 12 lines... just reprinting them.
./uniqbh.pl
Copying ./bash_history to ./bash_history-101809_020827
Unlinking ./bash_history
Copying /tmp/lPlN3goGnI.tmp
2009/10/18 Harry Putnam rea...@newsguy.com:
Hi,
I can't say I am absolutely sure what the error is referring to but I
can see where you might begin to look for clues.
I'm not sure what these errors are telling me.
The script is supposed to remove dups from .bash_history but not
operate on
At 2:11 AM -0500 10/18/09, Harry Putnam wrote:
I'm not sure what these errors are telling me.
I have not used File::Temp nor File::Copy very much. However, I think
you are not using File::Temp in its intended way, according to the
documentation. What version of File::Temp are you using? I
Harry Putnam wrote:
I'm not sure what these errors are telling me.
The script is supposed to remove dups from .bash_history
Wouldn't it be simpler to set HISTCONTROL to ignoredups:
export HISTCONTROL=ignoredups
Or:
export HISTCONTROL=ignoreboth
but not operate on the last 12 lines...
[...]
Harry wrote:
require File::Temp;
use File::Temp ();
Dermot queried:
Does this refer to the standard module or something else. If you are
(and I hope you are) using the standard File::Temp module then
substitute this:
require File::Temp;
use File::Temp ();
Dermot continued:
for
John W. Krahn jwkr...@shaw.ca writes:
Harry Putnam wrote:
I'm not sure what these errors are telling me.
The script is supposed to remove dups from .bash_history
Wouldn't it be simpler to set HISTCONTROL to ignoredups:
export HISTCONTROL=ignoredups
Or:
export HISTCONTROL=ignoreboth