Is this a typo, or did I misunderstand the sentence?
The excerpt from the book:
“The file must contain a function main(Args). When called from an operating system shell, Args will contain a list of the command-line arguments represented as atoms.”
I think it should read:
“The file must contain a function main(Args). When called from an operating system shell, Args will contain a list of the command-line arguments represented as lists.”
This book was published in 2013, and the author is not on DevTalk, so it’s unlikely you’ll get an answer from the author. One of the other readers may be able to weigh in. Try this book club page: Programming Erlang Book Club - #37 by Rainer