Path: utzoo!attcan!uunet!mailrus!wuarchive!texbell!sugar!ficc!peter From: peter@ficc.uu.net (Peter da Silva) Newsgroups: comp.sources.d Subject: Re: Perl scripts on systems without "#!" Summary: A solution. Message-ID: <7075@ficc.uu.net> Date: 21 Nov 89 20:36:26 GMT References: <255C7F44.171@ateng.com> <5935@cbnewsh.ATT.COM> <2568811E.264@ateng.com> Reply-To: peter@ficc.uu.net (Peter da Silva) Organization: Xenix Support, FICC Lines: 18 In article <2568811E.264@ateng.com> chip@ateng.com (Chip Salzenberg) writes: > A script with ":" as the first character > is always run by the Bourne shell. > Anything else is non-portable. Am I right? No. If you have the hashbang program, and !alias shell hashbang! in your .cshrc, then you can in addition say: A script with "#!/bin/sh" as the first line is always run by the bourne shell. And you can use the two-language-hack to solve the problem. -- `-_-' Peter da Silva . 'U` -------------- +1 713 274 5180. "I agree 0bNNNNN would have been nice, however, and I sure wish X3J11 had taken time off from rabbinical hairsplitting to add it." -- Tom Neff