I'd really love to understand how to do this as well. The supplied answers suggest .profile modifications but this only solves login initialization before the "real" shell is invoked (right?). I've been longing to port lots of my old 4Dos batch files to Perl but they won't affect my current shell environment. I don't want to write shell scripts. I'm just not a "fi" kinda guy. I have an script "mc" which takes one param and does a mkdir && a chdir on it which I find very useful... in 4Dos but Perl can't do it. Even if it's convoluted or compromises security or whatever, doesn't anybody know how to manipulate your parent process effectively from a Perl script? If I ever figure out on my own, I'll be sure to post it but all I've ever heard is it can't be done and I haven't had time to try to be underhanded myself yet. Hopefully somebody knows. TTFN & Shalom.

-PipTigger

p.s. Byslexia is a Ditch!

In reply to RE: chdir vs. shell behavior by PipTigger
in thread chdir vs. shell behavior by BBQ

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.