bug-bash
[Top][All Lists]
Advanced

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

Re: History Feature issue


From: Eduardo Bustamante
Subject: Re: History Feature issue
Date: Sun, 21 May 2017 16:36:06 -0500

On Sun, May 21, 2017 at 11:29 AM, Pranav Deshpande
<deshpande.v.pranav@gmail.com> wrote:
> The lssue here: https://savannah.gnu.org/support/?109000 interests me.
> It's something that I have experienced while using the shell. I am
> interested in solving it

That bug report lacks detail. There are already ways of sharing
history between multiple sessions. Some of the alternatives are
outlined here: 
https://unix.stackexchange.com/questions/1288/preserve-bash-history-in-multiple-terminal-windows

Give these a try first.

> Any ideas so as how can I get started with the code base?

If you're interested in the implementation, review:

dualbus@debian:~/src/gnu/bash$ head -n1 bashhist.c builtins/history.def
==> bashhist.c <==
/* bashhist.c -- bash interface to the GNU history library. */

==> builtins/history.def <==
This file is history.def, from which is created history.c.

And if you want to go into even more detail, review the history
library as implemented by GNU readline (and bundled with bash):

dualbus@debian:~/src/gnu/bash$ head -n1 lib/readline/hist*c
==> lib/readline/histexpand.c <==
/* histexpand.c -- history expansion. */

==> lib/readline/histfile.c <==
/* histfile.c - functions to manipulate the history file. */

==> lib/readline/history.c <==
/* history.c -- standalone history library */

==> lib/readline/histsearch.c <==
/* histsearch.c -- searching the history list. */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]