From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 5A712431FAF for ; Thu, 12 Apr 2012 00:00:20 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vuoISbZNr4Ze for ; Thu, 12 Apr 2012 00:00:19 -0700 (PDT) Received: from guru.guru-group.fi (guru-group.fi [87.108.86.66]) by olra.theworths.org (Postfix) with ESMTP id 907C0431FAE for ; Thu, 12 Apr 2012 00:00:19 -0700 (PDT) Received: by guru.guru-group.fi (Postfix, from userid 501) id B34C068055; Thu, 12 Apr 2012 10:00:14 +0300 (EEST) From: Tomi Ollila To: Taylor Carpenter , notmuch@notmuchmail.org Subject: Re: [PATCH] notmuch-mutt: Using /usr/bin/env to call perl In-Reply-To: <20120412002609.GA26981@codecafe.com> References: <20120412002609.GA26981@codecafe.com>User-Agent: Notmuch/0.12+77~gee11800 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-unknown-linux-gnu) X-Face: HhBM'cA~ MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Apr 2012 07:00:20 -0000 On Thu, Apr 12 2012, Taylor Carpenter wrote: > Supports other perl install locations > --- > contrib/notmuch-mutt/notmuch-mutt | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/contrib/notmuch-mutt/notmuch-mutt b/contrib/notmuch-mutt/notmuch-mutt > index 71206c3..424f9a3 100755 > --- a/contrib/notmuch-mutt/notmuch-mutt > +++ b/contrib/notmuch-mutt/notmuch-mutt > @@ -1,4 +1,4 @@ > -#!/usr/bin/perl -w > +#!/usr/bin/env perl -w > # > # notmuch-mutt - notmuch (of a) helper for Mutt > # shebang lines supports only one arg to the command -- multiple may confuse things. I tried following: $ echo '#!/usr/bin/env perl -w' > foo.pl $ chmod 755 foo.pl $ ./foo.pl /usr/bin/env: perl -w: No such file or directory zsh: exit 127 ./foo.pl I.e. drop the -w from command line. use warnings; (which is already in the code) is enough in this case. Tomi