LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Implement a Unix Shell with History Feature (http://www.linuxquestions.org/questions/linux-newbie-8/implement-a-unix-shell-with-history-feature-724507/)

vipin_jss 05-07-2009 06:30 PM

Implement a Unix Shell with History Feature
 
hello folks ,

i built a simple shell using Unix System Programming ,Robbins& Robbins now i want history features in this shell how can i do this plz be descriptive with you answer Thanks in advance

rweaver 05-07-2009 06:33 PM

Quote:

Originally Posted by vipin_jss (Post 3533902)
hello folks ,

i built a simple shell using Unix System Programming ,Robbins& Robbins now i want history features in this shell how can i do this plz be descriptive with you answer Thanks in advance


Do you want it to be persistent between sessions or only last as long as the session? Build a structure for the data (man history to see an example) attach a function to store the data in the structure, make a function to display the store of data.

chrism01 05-07-2009 08:38 PM

Also, remember that because this is Linux, you automatically get access to the src code, so you could have a read of that.


All times are GMT -5. The time now is 03:02 PM.