summaryrefslogtreecommitdiff
path: root/eg/nih
blob: 4475c499da024b617df00ba6a4d1e7368347fe4d (plain)
1
2
3
4
5
6
7
8
9
10
11
eval 'exec /usr/bin/perl -Spi.bak $0 ${1+"$@"}'
	if $running_under_some_shell;

# $RCSfile: nih,v $$Revision: 4.1 $$Date: 92/08/07 17:20:27 $

# This script makes #! scripts directly executable on machines that don't
# support #!.  It edits in place any scripts mentioned on the command line.

s[^#!(.*)]
 [#!$1\neval 'exec $1 -S \$0 \${1+"\$@"}'\n\tif \$running_under_some_shell;]
	if $. == 1;