Re: bash history

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

 



On 04/29/2012 12:15 AM, g wrote:
<>

>   HISTCONTROL="ignoredupes"
> 
>   export HISTCONTROL
> 
> wfm ;)

after some post post thinking, i recalled that i did try "ignoreboth",
but with out results and dropped to "ignoredupes" only.


in addition, here is info from gnu .org:

from the gnu 'bash reference manual';
  http://www.gnu.org/software/bash/manual/html_node/
you will find;
  http://www.gnu.org/software/bash/manual/html_node/Bash-Variables.html

containing;
++++
 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 which match the previous
   history entry to not be saved. A value of ‘ignoreboth’ is shorthand
   for ‘ignorespace’ and ‘ignoredups’. A value of ‘erasedups’ causes
   all previous lines matching the current line to be removed from the
   history list before that line is saved. Any value not in the above
   list is ignored.  If HISTCONTROL is unset, or does not include a
   valid value, all lines read by the shell parser are saved on the
   history list, subject to the value of HISTIGNORE. The second and
   subsequent lines of a multi-line compound command are not tested,
   and are added to the history regardless of the value of HISTCONTROL.
++++
 HISTIGNORE
   A colon-separated list of patterns used to decide which command lines
   should be saved on the history list. Each pattern is anchored at the
   beginning of the line and must match the complete line (no implicit ‘*’
   is appended). Each pattern is tested against the line after the checks
   specified by HISTCONTROL are applied. In addition to the normal shell
   pattern matching characters, ‘&’ matches the previous history line. ‘&’
   may be escaped using a backslash; the backslash is removed before
   attempting a match. The second and subsequent lines of a multi-line
   compound command are not tested, and are added to the history regardless
   of the value of HISTIGNORE.

   HISTIGNORE subsumes the function of HISTCONTROL. A pattern of ‘&’ is
   identical to ignoredups, and a pattern of ‘[ ]*’ is identical to
   ignorespace. Combining these two patterns, separating them with a colon,
   provides the functionality of ignoreboth.
++++

-- 

peace out.

tc.hago,

g
.

*please reply "plain text" only. "html text" are deleted*

****
in a free world without fences, who needs gates.
**
help microsoft stamp out piracy - give linux to a friend today.
**
to mess up a linux box, you need to work at it.
to mess up an ms windows box, you just need to *look* at it.
**
The installation instructions stated to install Windows 2000 or better.
So I installed Linux.
**
learn linux:
'Rute User's Tutorial and Exposition' http://rute.2038bug.com/index.html
'The Linux Documentation Project' http://www.tldp.org/
'LDP HOWTO-index' http://www.tldp.org/HOWTO/HOWTO-INDEX/index.html
'HowtoForge' http://howtoforge.com/
****

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux