It's the old LINK TRICK!

ln -s /home/brianp/bin/psr.pl /home/brianp/bin/psh/psr brianp@raptor:~$ perl -v | psr "s/^\s*$//" | head -n 2 This is perl 5, version 22, subversion 1 (v5.22.1) built for x86_64-li +nux Copyright 1987-2015, Larry Wall PATHEXT=.BAT;.pl;.EXE;.COM;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY; +.PYW
It's Alive!

Forcing each user to either vitiate their script names or maintain
a parallel link system with double maintenance is most inattentive!

Fixing such a simple problem by destroying information and abolishing
file extensions just seems wrong-headed. Perhaps, it's the NIH syncrom;

How about (ba)sh feature: EXEC_EXTENSION=pl:sh:py:rb ExExt?

Having the ability to specify execution preference based not only
on directory but also on EXTension is very handy.

Rather like Intermittent Windshield Wipers!
Once you have used them, they are hard to do without.

Ford never put them on the Model T so YOU CAN'T HAVE THEM!
How can you have your wipers both ON and OFF at the Same Time?
That's Just Crazy!!!
Have you tried REMOVING YOUR WINDSHIELD TO FIX THE PROBLEM?? :-)

This is NOT a PERL PROBLEM. I was hoping that there was a
GOOD PERL SOLUTION
eval(($COMSPEC($cmd)) =~ m/BAD COMMAND/i) && exec(&fcmd($cmd))[0]) *!!!

NOTE* Concept only, do not run, may fuse your North Bridge!


In reply to Re^2: Perl script w/o .pl extension broken on Ubuntu? by BrianP
in thread Perl script w/o .pl extension broken on Ubuntu? by BrianP

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.