clear history from shell

Karl Auer kauer at biplane.com.au
Tue May 17 07:34:26 UTC 2016


On Tue, 2016-05-17 at 07:27 +0100, Grizzly wrote:
> Monday, May 16, 2016  at 23:57, Karl Auer wrote:
> Re: clear history from shell (at least in part)
> 
> > On Mon, 2016-05-16 at 13:18 +0100, Grizzly wrote:
> > > I have a simple script,
> 
> > You changed the shell from bash (or dash) to sh in the first line
> > of
> > your script. Change it to /bin/bash and your script will run.
> 
> > However, it will not work as you expect - it will clear the history
> > in
> > a new shell, not your interactive shell. And it will not exit your
> > shell.
> 
> Yes I see that (or don't see anything) now
> 
> > After fixing the shell specifier, you could run the script like
> > this
> > and it would sort of work:
> 
> > . Scripts/myclean.sh
> 
> Now that works a dream

Are you sure? I think it's probably just doing the clear, not the write
and not the exit.

Regards, K.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer
http://twitter.com/kauer389

GPG fingerprint: E00D 64ED 9C6A 8605 21E0 0ED0 EE64 2BEE CBCB C38B
Old fingerprint: 3C41 82BE A9E7 99A1 B931 5AE7 7638 0147 2C3C 2AC4







More information about the ubuntu-users mailing list