Hmm... It seems like removing optional trailing newlines early ought to be more general and robust. After all, perl has had chomp() for what, a decade or more?
Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds