summaryrefslogtreecommitdiff
path: root/eg/nih
blob: 15cb60f49657c75c36ab87d181b93d3c3248b5f6 (plain)
1
2
3
4
5
6
7
8
9
10
eval "exec /usr/bin/perl -Spi.bak $0 $*"
	if $running_under_some_shell;

# $Header: nih,v 2.0 88/06/05 00:16:54 root Exp $

# 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 \$*"\n\tif \$running_under_some_shell;|
	if $. == 1;