bash scripting across linux and solaris

Gregory Boyce gboyce-qL0WqcyiFk9Wk0Htik3J/w at public.gmane.org
Wed Aug 26 17:49:23 EDT 2009


On Wed, 26 Aug 2009, Stephen Adler wrote:

> I remember some syntax which would tell the system running the script to
> look in the path for the shell executable, but I can't remember the
> syntax and I'm having a hard time finding it searching google. Does
> anyone know the best solution?

It would typically be:

#!/usr/bin/env bash

Hopefully both systems have the env binary in the same place.

--
Greg





More information about the Discuss mailing list