Does the strawberry version of perldoc have a shebang line of #!/usr/bin/perl (I believe it does)?. What is happening is that the git shell is looking at the shebang line for the perldoc script which is first in your path. According to Unix semantics, it looks at the first line for the interpreter to run, which (according to your path) is the msys version installed with the git shell. So, you are running Strawberry's perldoc with the git shell (msys) perl, libraries, and other things.

I have not gotten around to checking and/or submitting a bug with strawberry for this yet, but in my opinion, the scripts should either be installed with the full path to the perl binary from the installation, or just #!perl. If the shebang is changed to #!perl, you need to ensure that the Strawberry perl is first in your path.

After checking my install, it appears that only some of the perl scripts in Strawberry's installation are configured with full paths for the shebang line, which causes its own set of issues. Those are the items that should have a bug attached to them, either in the package, or on Strawberry itself. (IMO, of course)

Update: Corrected post based on checking my current Strawberry install

--MidLifeXis


In reply to Re: perldoc GIT bash by MidLifeXis
in thread perldoc GIT bash by tmulher

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.