Go To Homepage



Book Details
From Bash to Z Shell: Conquering the Command Line book cover
  • By Oliver Kiddle Jerry Peek Peter Stephenson
  • ISBN13: 978-1-59059-376-9
  • ISBN10: 1-59059-376-6
  • 472 pp.
  • Published Nov 2004
  • Print Book Price: $34.99
  • eBook Price: $24.49



Errata Submission

If you think that you've found an error in From Bash to Z Shell: Conquering the Command Line, please let us know about it. You will find any confirmed erratum below, so you can check if your concern has already been addressed.

Submit Errata
From Bash to Z Shell: Conquering the Command Line (978-1-59059-376-9)

Errata

Issue Author's Response
Hi!

Chapter 6, page 128:

ls -l !-4:2:r.o
ls -l /home/pws/zsh/sourceforge/zsh/Src/Zle/zle_main
...

must read

ls -l !-4:2:r.o
ls -l /home/pws/zsh/sourceforge/zsh/Src/Zle/zle_main.o
...

(the .o at the end is missing).

Best regards,

Sebastian
Thanks, yes, your correction is correct and I don't think we'd spotted this yet.
chapter 12, Accessign Array Elements, page 283
where:
bash$ echo ${arr[${#arr}-1]}

must be:
bash$ echo ${arr[${#arr[@]}-1]}

or:
bash$ echo ${arr[${#arr[*]}-1]}
You're right,

bash$ echo ${arr[${#arr[*]}-1]}

is probably the best solution. Thanks for spotting that.