Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!usc!elroy.jpl.nasa.gov!jpl-devvax!lwall From: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Newsgroups: comp.lang.perl Subject: Re: Force script to use /bin/sh? Message-ID: <7105@jpl-devvax.JPL.NASA.GOV> Date: 18 Feb 90 04:40:31 GMT References: <15178@bfmny0.UU.NET> Reply-To: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 19 In article <15178@bfmny0.UU.NET> tneff@bfmny0.UU.NET (Tom Neff) writes: : I might add in passing that Perl ought to respect the #! notation itself, : and pass scripts to the chosen interpreter (if it doesn't end in 'perl'). : : *** THIS WOULD MAKE A NICE THING TO ADD IN PATCH 9 LARRY *** *** OK I ADDED IT TO PATCH 9 TOM *** : hee hee ho ho Another perl hack adjustor, Larry P.S. Here's the scoop: if argv[0] contains "perl", and #!WHATEVER doesn't contain "perl", it will invoke WHATEVER for you. It will even throw in the first argument after WHATEVER like it's supposed to. Note that it recognizes "perl" anywhere in the WHATEVER, not just at the end.