nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] First release candidate of nmh 1.6 now available


From: Earl Hood
Subject: Re: [Nmh-workers] First release candidate of nmh 1.6 now available
Date: Tue, 15 Apr 2014 15:06:37 -0500

On Tue, Apr 15, 2014 at 3:00 PM, Ken Hornstein wrote:

> I have mixed feelings about this; I think /bin/bash is wrong, but I thought
> that /bin/sh should actually work everywhere.  I know perl is all over
> the place, but I thought /usr/bin/perl was pretty standard.  What do
> others think?

/bin/sh should be used for shell scripts, and any scripts should avoid
anything that only Bash supports.

As for perl, /usr/bin/perl is fairly standard if Perl is installed, so I
see no problem leaving it that way.  However, the following could be
used if you want to make perl scripts more flexible:

  #!/usr/bin/env perl

The only real downside to this is if scripts can be run as root.  Using
env method could be a potential vulnerability.

--ewh



reply via email to

[Prev in Thread] Current Thread [Next in Thread]