[texhax] atchange

Tom Schneider toms at ncifcrf.gov
Wed Mar 22 23:10:25 CET 2006


Reinhard:

> >>>>> "Tom" == Tom Schneider <toms at ncifcrf.gov> writes:
> 
>   > Basically, atchange needs to be told where to get perl from and
>   > it's different on different flavors of unix.  On the new MacBook
>   > Pro, the location is /usr/bin/perl as stated there but I haven't
>   > tried atchange on that machine yet.
> 
> I suppose that you talk about the very first line in a Perl script.
> 
> Instead of 
> 
>   #!/usr/bin/perl
> 
> you can try
> 
>   #!/bin/env perl
> 
> to search for perl in $PATH.
> 
> Regards,
>   Reinhard
> 
> -- 
> ----------------------------------------------------------------------------
> Reinhard Kotucha			              Phone: +49-511-4592165
> Marschnerstr. 25
> D-30167 Hannover	                      mailto:reinhard.kotucha at web.de
> ----------------------------------------------------------------------------
> Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
> ----------------------------------------------------------------------------

That would be a great solution ... except that /bin/env is not
in the same place on the Mac!

Interestingly

#!env perl

works on the Mac, but unfortunately fails on the Sun.

It's not clear to me that one could have a universal way to do this,
though it would be nice!

By the way, atchange does work on the new Intel-based MacBook Pro.

Tom


More information about the texhax mailing list