unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Tomi Ollila <tomi.ollila@iki.fi>
To: Taylor Carpenter <taylor@codecafe.com>, notmuch@notmuchmail.org
Subject: Re: [PATCH] notmuch-mutt: Using /usr/bin/env to call perl
Date: Thu, 12 Apr 2012 10:00:14 +0300	[thread overview]
Message-ID: <m2ty0pjuyp.fsf@guru.guru-group.fi> (raw)
In-Reply-To: <20120412002609.GA26981@codecafe.com>

On Thu, Apr 12 2012, Taylor Carpenter <taylor@codecafe.com> 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

      reply	other threads:[~2012-04-12  7:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-12  0:26 [PATCH] notmuch-mutt: Using /usr/bin/env to call perl Taylor Carpenter
2012-04-12  7:00 ` Tomi Ollila [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2ty0pjuyp.fsf@guru.guru-group.fi \
    --to=tomi.ollila@iki.fi \
    --cc=notmuch@notmuchmail.org \
    --cc=taylor@codecafe.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).