On Thu, Jan 02, 2014 at 09:12:38PM -0500, Peter Schaffter wrote: > On Thu, Jan 02, 2014, Mike Bianchi wrote: > > How is someone attempting to understand a #!/bin/sh script to know what > > the > > writer intended if there is no documented way to interpret the syntax? > > #!/bin/sh > # This script is written for the bash shell. See bash(1). > > Or is that just too obvious?
Wouldn't #!/bin/bash be more obvious and less error-prone? For years my /bin/sh linked to /bin/ksh . It took a while when debugging ~#/bin/sh shells (often written for /bin/bash) to figure out _that_ was what was burning me. -- Mike Bianchi Foveal Systems 973 822-2085 mbian...@foveal.com http://www.AutoAuditorium.com http://www.FovealMounts.com