-
Notifications
You must be signed in to change notification settings - Fork 64
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
Discussion: history 6 -> history | tail -n 6 #626
Comments
Thanks for you for opening this issue @onlyphantom ! I believe As for In either case, I agree we should be consistent but I would lean towards changing 3.8.12 to the briefer syntax. Let's see what others think. |
Thank you for that reassurance! As a Mac user at home (macOS recently went from bash to zsh), I can confirm that The expected output of
|
It is not working in zsh is because Unfortunately, |
In Chapter 4.3 Turning Interactive Work into a Script, the author suggests using
history 6
to retrieve / show the last 6 commands in our history:history 6
is probably specific to specific flavours of Unix, and is not guaranteed to work. I propose to change it tohistory | tail -n 6
instead:head -6
may work in some flavours of Unix,head -n 6
is recommended in the book.What do everyone think?
I'm not sure if this is a welcomed suggestion, so I didn't send in a PR but decided to open an issue instead, and maybe get some feedback as to what the authors think. If this is the wrong avenue, apologies in advance 🙏
Thank you for the work you put into this.
The text was updated successfully, but these errors were encountered: