Perl used to fire off a csh or tcsh when trying to <kbd>glob()</kbd> on some systems but nowadays it calls File::Glob::glob() instead. Yes, oddly a module now serves the purpose of providing a perl core function, at least on Unix like OSes that is what happens (MacOS and VMS have their own unique glob implementations that are distinct).

Oddly the File::Glob code contains some readdir() code that was written by Guido van Rossum and placed under the BSD license. Why folks seem to insist that there is no cooperation between Python developers and Perl developers is actually counter indicated by the content of the perl source tar ball.

Which CLI is fired off by calling system() is actually dependent on your C run time library. For example, on VMS calling system() from C (or from Perl) will execute your default login CLI, which is usually DCL and not a Bourne like shell. Similar comments hold for using backticks on Mac OS: some commands are actually parsed and handed off to the MPW Toolserver since the MPW shell does not really provide support for a C RTL implementation of system(). On most Unixes system() will run with the deafult CLI, the one that the root account uses, etc. It happens to be sh (or bsh on AIX) for hysterical raisons.


In reply to Re: Why a C shell? by Anonymous Monk
in thread Why a C shell? by perigeeV

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.