Addition in bash

James Michael Fultz croooow at gmail.com
Wed Oct 14 15:23:27 UTC 2009


* David N. Lombard <dnl at speakeasy.net> [2009-10-14 06:23 -0700]:
> Ray Parrish wrote:
> >> #!/usr/bin/env bash
> 
> #!/bin/bash
> 
> env is used when you don't know the absolute path of the binary.  bash 
> is /bin/bash--to move it elsewhere would cause intense carnage.

Generally a safe assumption on GNU/Linux, but not so on other Unix-like
platforms.  It could be '/usr/pkg/bin/bash' on NetBSD, or
'/usr/local/bin/bash' on FreeBSD or Solaris, etc.




More information about the ubuntu-users mailing list