Subject: Why /usr/bin/env in scripts

From: Philip Pokorny <[email-masked]>
Date: Mon, 25 Apr 2005 00:38:11 -0700

I notice that the first line of the pasky shell scripts is

#!/usr/bin/env bash

rather than what I'm more familiar with:

#!/bin/bash

I see that env can be used to alter the environment before running a 
program, but that doesn't seem to be happening here.

In fact, on my system /usr/bin/env is a link to /bin/env...

So what am I missing?  Is this a portability aid?

Thanks,
:v)