home *** CD-ROM | disk | FTP | other *** search
/ back2roots/padua / padua.7z / padua / lang / perl4.035.V010.lzh / perl4.035 / eg / nih < prev    next >
Encoding:
Text File  |  1992-08-05  |  369 b   |  11 lines

  1. eval "exec /usr/bin/perl -Spi.bak $0 $*"
  2.     if $running_under_some_shell;
  3.  
  4. # $Header: nih,v 4.0 91/03/20 01:11:29 lwall Locked $
  5.  
  6. # This script makes #! scripts directly executable on machines that don't
  7. # support #!.  It edits in place any scripts mentioned on the command line.
  8.  
  9. s|^#!(.*)|#!$1\neval "exec $1 -S \$0 \$*"\n\tif \$running_under_some_shell;|
  10.     if $. == 1;
  11.