From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3001 invoked from network); 27 Mar 2001 18:20:24 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 27 Mar 2001 18:20:24 -0000 Received: (qmail 10604 invoked by alias); 27 Mar 2001 18:20:17 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 13799 Received: (qmail 10589 invoked from network); 27 Mar 2001 18:20:16 -0000 From: "Bart Schaefer" Message-Id: <1010327181943.ZM14188@candle.brasslantern.com> Date: Tue, 27 Mar 2001 18:19:43 +0000 In-Reply-To: <20010327142836.C32602@thelonious.new.ox.ac.uk> Comments: In reply to Adam Spiers "/usr/local/bin/perl" (Mar 27, 2:28pm) References: <20010327142836.C32602@thelonious.new.ox.ac.uk> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh workers mailing list Subject: Re: /usr/local/bin/perl MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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