unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] notmuch-mutt: Using /usr/bin/env to call perl
@ 2012-04-12  0:26 Taylor Carpenter
  2012-04-12  7:00 ` Tomi Ollila
  0 siblings, 1 reply; 2+ messages in thread
From: Taylor Carpenter @ 2012-04-12  0:26 UTC (permalink / raw)
  To: notmuch

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
 #
-- 
1.7.7.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] notmuch-mutt: Using /usr/bin/env to call perl
  2012-04-12  0:26 [PATCH] notmuch-mutt: Using /usr/bin/env to call perl Taylor Carpenter
@ 2012-04-12  7:00 ` Tomi Ollila
  0 siblings, 0 replies; 2+ messages in thread
From: Tomi Ollila @ 2012-04-12  7:00 UTC (permalink / raw)
  To: Taylor Carpenter, notmuch

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-04-12  7:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-12  0:26 [PATCH] notmuch-mutt: Using /usr/bin/env to call perl Taylor Carpenter
2012-04-12  7:00 ` Tomi Ollila

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).