LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Unix shell with history features like in bash (https://www.linuxquestions.org/questions/linux-newbie-8/unix-shell-with-history-features-like-in-bash-728092/)

vipin_jss 05-23-2009 08:50 PM

Unix shell with history features like in bash
 
hii to all
i am developing a simple unix shell in c i want to add history feature in that how could i do that plz help if there is any tutorial or website plz put it here

history feature should be like that in bash, when press up key show the previous command typed in console

btmiller 05-23-2009 10:48 PM

Look at the GNU readline library. As a matter of fact, bash uses the readline library IIRC. If this is a homework assignment, you'll learn a lot more figuring out how to use the library yourself.


All times are GMT -5. The time now is 06:19 PM.