Sometimes it would be nice to embed a binary in a shell script, if only to provide a neat deployment for a command line tool. There’s a right way to do this, so that the shell script remains editable even after the binary has been attached to it, and a wrong way – where the shell script is no longer editable at the end. I’ll show you the right way here, and you can work out the wrong way yourself.
Continue reading “Snippet of Code # 4 – Embedding binary in a shell script”