Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple shell 1.0.9 history #21

Open
2 of 4 tasks
edward0rtiz opened this issue Aug 16, 2019 · 0 comments
Open
2 of 4 tasks

Simple shell 1.0.9 history #21

edward0rtiz opened this issue Aug 16, 2019 · 0 comments
Assignees

Comments

@edward0rtiz
Copy link
Collaborator

edward0rtiz commented Aug 16, 2019

  • Implement the history built-in, without any argument

  • The history built-in displays the history list, one command by line, preceded with line numbers (starting at 0)

  • On exit, write the entire history, without line numbers, to a file named .simple_shell_history in the directory $HOME

  • When the shell starts, read the file .simple_shell_history in the directory $HOME if it exists, and set the first line number to the total number of lines in the file modulo 4096

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants