summaryrefslogtreecommitdiffstats
path: root/contrib/perl5/eg/nih
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/perl5/eg/nih')
-rw-r--r--contrib/perl5/eg/nih11
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/perl5/eg/nih b/contrib/perl5/eg/nih
new file mode 100644
index 0000000..4475c49
--- /dev/null
+++ b/contrib/perl5/eg/nih
@@ -0,0 +1,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;
OpenPOWER on IntegriCloud