[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #8697 [Tor bundles/installation]: .bash_history contains traces of TBB use (Debian Linux)



#8697: .bash_history contains traces of TBB use (Debian Linux)
--------------------------------------+-------------------------------------
 Reporter:  runa                      |          Owner:  erinn
     Type:  defect                    |         Status:  new  
 Priority:  normal                    |      Milestone:       
Component:  Tor bundles/installation  |        Version:       
 Keywords:                            |         Parent:       
   Points:                            |   Actualpoints:       
--------------------------------------+-------------------------------------

Comment(by pabs):

 In the advice where you tell people to run it from the command-line, you
 can tell them to include a space before the command, then bash will not
 log it because the default bash configuration says to ignoreboth, which
 means commands starting with a space and duplicate commands.

 Another option would be HISTIGNORE, but that probably would leave more
 traces since they would need to add it to a config file.

 {{{
 user@host:~$  echo bad command
 bad command
 user@host:~$ echo good command
 good command
 user@host:~$ exec bash -i
 user@host:~$ tail .bash_history
 echo good command
 exec bash -i
 user@host:~$ grep -B2 ignore /etc/skel/.bashrc
 # don't put duplicate lines or lines starting with space in the history.
 # See bash(1) for more options
 HISTCONTROL=ignoreboth
 }}}

 From the documentation:

  HISTCONTROL
    A colon-separated list of values controlling  how  commands  are saved
 on  the  history  list.   If  the list of values includes ignorespace,
 lines which begin with a space character are not saved in  the history
 list. A value of ignoredups causes lines matching the previous history
 entry to not be saved.  A value of ignoreboth is shorthand for ignorespace
 and ignoredups.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/8697#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs