perl 3.0 patch #22 patch #19, continued
[p5sagit/p5-mst-13.2.git] / eg / nih
CommitLineData
378cc40b 1eval "exec /usr/bin/perl -Spi.bak $0 $*"
2 if $running_under_some_shell;
3
a687059c 4# $Header: nih,v 3.0 89/10/18 15:15:12 lwall Locked $
378cc40b 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
9s|^#!(.*)|#!$1\neval "exec $1 -S \$0 \$*"\n\tif \$running_under_some_shell;|
10 if $. == 1;