[geeks] bash string matching

Phil Stracchino alaric at metrocast.net
Thu Jun 5 05:38:41 CDT 2008


Jochen Kunz wrote:
> I have seen to many "shell scripts" written by Linux weenies that start
> with "#!/bin/sh" but are actually bash scripts...

Because /bin/sh on most out-of-the-box Linux distros is just a symlink
to /bin/bash.

> A bourne shell, that limits it self mostly to the POSIX spec, is
> the /bin/sh of NetBSD. It is available on Linux as "ash" or as part of
> busybox.

I don't remember where I got my /bin/sh from, but it really is a
/bin/sh, not a link to /bin/bash.


-- 
  Phil Stracchino, CDK#2     DoD#299792458     ICBM: 43.5607, -71.355
  alaric at caerllewys.net   alaric at metrocast.net   phil at co.ordinate.org
         Renaissance Man, Unix ronin, Perl hacker, Free Stater
                 It's not the years, it's the mileage.



More information about the geeks mailing list