Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uakari.primate.wisc.edu!sdd.hp.com!decwrl!orc!inews!iwarp.intel.com!news From: merlyn@iwarp.intel.com (Randal Schwartz) Newsgroups: comp.lang.perl Subject: Re: #! on Ultrix Message-ID: <1990Jul13.204041.23704@iwarp.intel.com> Date: 13 Jul 90 20:40:41 GMT References: <1990Jul13.173130.571@uvaarpa.Virginia.EDU> Sender: news@iwarp.intel.com Reply-To: merlyn@iwarp.intel.com (Randal Schwartz) Organization: Stonehenge; netaccess via Intel, Beaverton, Oregon, USA Lines: 43 In-Reply-To: worley@compass.com (Dale Worley) In article <1990Jul13.173130.571@uvaarpa.Virginia.EDU>, worley@compass (Dale Worley) writes: | I'm having trouble getting a Perl script to automatically start the | interpreter via the #! mechanism. It appears to be sensitive to the | length of the interpreter name I give in the #! line. I haven't seen | anything like this in SunOS. Is there known to be some difficulty in | Ultrix (V3.1 Rev. 9) with this feature? Remember. Ultrix is not UNIX! (yuck yuck) First off, I'll assume you know about 32-char maximum, since you mention SunOS already. Thus, I presume you ran into the stupid stupid problem that I did... that symlinks in the command name are *expanded* *within* that 32-char limitation *only* under Ultrix! Gack! Under SunOS, for example, you can: ln -s /some/humongously/long/path/name/to/somewhere /tmp/foo and run a script that begins: #!/tmp/foo script here but try to run the *same* thing on Ultrix, and you get something like: /some/humongously/long/path/nam not found Grrrrr. Double grrrrrr. Does this answer it? Even if it doesn't, this message should make others aware of such an awful problem. I ran across it because I wanted to symlink my /local/usr/bin on the VAXen to /base/vax-ultrix3/local/usr/bin, and the path is a wee bit too long. Had to shorten it to /base/vax-3/local/usr/bin, and even then I had to make a symlink from tp to taintperl so that I could put /local/usr/bin/tp in my scripts (for some "illegal" setuid scripts that I have). print "just another Perl hacker, a wee bit too long..." -- /=Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095 ==========\ | on contract to Intel's iWarp project, Beaverton, Oregon, USA, Sol III | | merlyn@iwarp.intel.com ...!any-MX-mailer-like-uunet!iwarp.intel.com!merlyn | \=Cute Quote: "Welcome to Portland, Oregon, home of the California Raisins!"=/