From xemacs-m  Tue Apr  1 13:35:11 1997
Received: from venus.Sun.COM (venus.Sun.COM [192.9.25.5])
	by xemacs.org (8.8.5/8.8.5) with SMTP id NAA19915
	for <xemacs-beta@xemacs.org>; Tue, 1 Apr 1997 13:35:10 -0600 (CST)
Received: from Eng.Sun.COM ([129.146.1.25]) by venus.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id LAA05148; Tue, 1 Apr 1997 11:34:40 -0800
Received: from kindra.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3)
	id LAA04976; Tue, 1 Apr 1997 11:34:37 -0800
Received: from xemacs.eng.sun.com by kindra.eng.sun.com (SMI-8.6/SMI-SVR4)
	id LAA00519; Tue, 1 Apr 1997 11:34:38 -0800
Received: by xemacs.eng.sun.com (SMI-8.6/SMI-SVR4)
	id LAA00158; Tue, 1 Apr 1997 11:34:35 -0800
Date: Tue, 1 Apr 1997 11:34:35 -0800
Message-Id: <199704011934.LAA00158@xemacs.eng.sun.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
From: Martin Buchholz <mrb@Eng.Sun.COM>
To: sperber@informatik.uni-tuebingen.de (Michael Sperber [Mr. Preprocessor])
Cc: xemacs-beta@xemacs.org
Subject: Re: pstogif
In-Reply-To: <y9l3etbszau.fsf@modas.informatik.uni-tuebingen.de>
References: <y9lbu84yu26.fsf@modas.informatik.uni-tuebingen.de>
	<199703282129.NAA23960@xemacs.eng.sun.com>
	<y9l3etbszau.fsf@modas.informatik.uni-tuebingen.de>
Reply-To: Martin Buchholz <mrb@Eng.Sun.COM>

>>>>> "Michael" == Michael Sperber <sperber@informatik.uni-tuebingen.de> writes:

>>>>> "Martin" == Martin Buchholz <mrb@Eng.Sun.COM> writes:

Martin> Here's the magic I use in all my perl scripts:

Martin> : # -*-Perl-*-
Martin> eval 'exec perl -w -S $0 ${1+"$@"}' # Portability kludge
Martin> if 0;

Michael> I'm not sure I made myself clear:  How does Perl get executed when you 
Michael> start the script?  What I was thinking of was (I think) something that 
Michael> started like

Michael> #!/bin/sh
Michael> <magic incantation that would cause sh to start Perl and
Michael>  that Perl ignores>

Isn't that exactly what my script fragment provides?  First the shell,
then perl, is executed.  Do you have a system where this fails?

Martin

