[indiana-discuss] [caiman-discuss] /bin/sh and bash - deep disappointment

Shawn Walker swalker at opensolaris.org
Thu Nov 1 18:22:11 PDT 2007


On 01/11/2007, Jennifer Pioch <piochjennifer at googlemail.com> wrote:
> On 11/1/07, Lurie <yura at gmx.co.uk> wrote:
> > Writing scripts with the assumption that /bin/sh is ksh93 is in itself a very bad idea. And you can always do #!/usr/bin/ksh93
>
> Why? Did you even try the alternative or are you just saying GNU tools
> must be everywhere?

Because that is not how it is suposed to work. You should never, ever
assume that #!/bin/sh is a particular shell. The shebang line should
refer to the specific shell you are expecting.

-- 
Shawn Walker, Software and Systems Analyst
http://binarycrusader.blogspot.com/

"We don't have enough parallel universes to allow all uses of all
junction types--in the absence of quantum computing the combinatorics
are not in our favor..." --Larry Wall



More information about the indiana-discuss mailing list