Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: /usr/local/bin/perl
- X-seq: zsh-workers 13799
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh workers mailing list <zsh-workers@xxxxxxxxxxxxxx>
- Subject: Re: /usr/local/bin/perl
- Date: Tue, 27 Mar 2001 18:19:43 +0000
- In-reply-to: <20010327142836.C32602@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20010327142836.C32602@xxxxxxxxxxxxxxxxxxxxxxx>
On Mar 27, 2:28pm, Adam Spiers wrote:
} Subject: /usr/local/bin/perl
}
} This must have come up before, but I can't see it in the archives.
}
} The following scripts hardcode binary locations (excluding /bin/sh
} since if a system can't cope with that ...) :
The only reason that I've added #! lines anywhere is so that emacs will
start up in shell script mode and select the correct syntax.
} Util/helpfiles : #!/usr/bin/perl -- -*-perl-*-
The -*- perl -*- is extraneous there, at least in newer versions of emacs.
It'll figure it out from the tail of the #! path.
} Test/ztst.zsh : #!/usr/local/bin/zsh -f
That should be ".../zsh -f +Z".
} Can we avoid this? Is env(1) common to enough platforms, for
} instance, or maybe we could add something to configure?
If you put env in the #! line -- or put the #! line anywhere but as the
first line in the script -- it foils emacs' algorithm for figuring out
which mode to start in. Same issue if you put some kind of @...@ thing
for configure there. Not that this should be the primary reason for any
decision that we make, but at least consider it.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author