From owner-cvs-src@FreeBSD.ORG Wed Feb 16 08:20:08 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 25E8416A4CE; Wed, 16 Feb 2005 08:20:08 +0000 (GMT) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F0CF43D31; Wed, 16 Feb 2005 08:20:07 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id C433EACADB; Wed, 16 Feb 2005 09:20:00 +0100 (CET) Date: Wed, 16 Feb 2005 09:20:00 +0100 From: Pawel Jakub Dawidek To: Garance A Drosehn Message-ID: <20050216082000.GH9291@darkness.comp.waw.pl> References: <200502160517.j1G5HwRL083696@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bygAmIonOAIqBxQB" Content-Disposition: inline In-Reply-To: <200502160517.j1G5HwRL083696@repoman.freebsd.org> User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/bin/sh options.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Feb 2005 08:20:08 -0000 --bygAmIonOAIqBxQB Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 16, 2005 at 05:17:58AM +0000, Garance A Drosehn wrote: +> gad 2005-02-16 05:17:58 UTC +>=20 +> FreeBSD src repository +>=20 +> Modified files: +> bin/sh options.c=20 +> Log: +> Change /bin/sh so *it* implements the processing needed for scripts to +> work as expected when they have a "shebang line" of: +> =20 +> #!/bin/sh -- # -*- perl -*- -p +> =20 +> This specific line is recommended in some perl documentation, and I th= ink +> I've seen similar lines in documentation for ruby and python. Those +> write-ups expect `sh' to ignore everything after the '--' if the first +> thing after the '--' is a '#'. See chapter 19, "The Command-Line Inte= rface" +> in 3rd edition of "Programming Perl", for some discussion of why perl +> recommends using this line in some circumstances. +> =20 +> The above line does work on solaris, irix and aix (as three data point= s), +> and it used to work on FreeBSD by means of a similar patch to execve(). +> However, that change to execve() effected *all* shells (which caused +> other problems), and that processing was recently removed. Thank you! --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --bygAmIonOAIqBxQB Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFCEwIwForvXbEpPzQRAvnHAKCkDLcYnuG2x4WCNHN2xfUt0C06rACfaiH4 mqr2IKBPnCT8wBOmGcPx8W0= =K8jH -----END PGP SIGNATURE----- --bygAmIonOAIqBxQB--