Well, just because you asked, I'll go into the ugly details (this is mostly academic help for other people who will get into this situation too).

I'm normally a Linux/BSD type of guy. I have run solaris and played in it before, but never a solaris pre 7. So when I came to this site to start working on some new tools for them, and I was given a SunOS 5.6 account, I was without all sorts of tools.

So after getting bash built okay, I started setting things up in my .bashrc. For example, 'make' and 'cc' live in very different places on old SunOS boxes than they do on BSD or GNU (/usr/ccs/bin and /usr/ucb in this case, respectively). Also, the default path given to me was /bin and /usr/bin, which was absolutely pathetic. So I figured out that I wanted my path to include all the Solaris binaries (i'll be damned if i have to go and build 'ls'), so I have a path laid out like this in my .bashrc:

PATH='' PATH=$PATH:/bin PATH=$PATH:/sbin PATH=$PATH:/usr/bin PATH=$PATH:/usr/sbin PATH=$PATH:/usr/local/bin PATH=$PATH:/usr/local/sbin PATH=$PATH:/usr/ccs/bin PATH=$PATH:/usr/ucb PATH=$PATH:$HOME/bin PATH=$PATH:$HOME/perl/bin
However, when vi goes to execute perldoc, as Masem just pointed out, it is looking through the path and finding first perldoc in /usr/local/bin , which then points to /usr/local/lib/perl { ... }, and I (not being of rootly powers) cannot put new modules there. So I (innocently and successfully but probably not correctly) just put an alias in my .bashrc which made 'perl' and 'perldoc' point to the appropriate binaries under my home directory.

I'm not convinced putting my homedir/bin paths above the SunOS paths is a better, safer idea than using an alias (because of the very issues Masem suggested), but it is the only way, apparently, to make vi understand that I dont want the system perldoc, I want _my_ perldoc.

Thanks Masem, virtualsue.
brother dep.

--
Laziness, Impatience, Hubris, and Generosity.


In reply to Re: Re: Isolating perldoc from the system perldoc by deprecated
in thread Isolating perldoc from the system perldoc by deprecated

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.