Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

acronym for perl shell?

by aufrank (Pilgrim)
on Aug 06, 2002 at 13:53 UTC ( [id://188024]=perlmeditation: print w/replies, xml ) Need Help??

morning everybody!

one of the first posts I read when I came to the monastery was perl6: Switch, another case (pun intended) for unscoped eval, mostly because the original title had the word "indented" instead of "intended" (see here) and I was curious whether it was a relatively clever pun, or a typo (after the fact, if it's a pun I don't get it). Now, I don't claim to understand the code that was posted, but the thread, and some of the links it sent me to, piqued my interest. It seems StefP thinks perl would be an ideal shell language, except that its missing a few things (read the last link above for his RFC on a scopeless eval). Apparently, he's been thinking about this for a while.

I have to say, I'd love to see this happen and believe that a perl shell would be an incredible tool for the *nix community. But the most important question remains unanswered:

What would we call it?

there are some folk at sourceforge who have been working on an implementation of this idea, calling it "psh". (the youngest file in their cvs tree is 7 months old, so I don't know how much they're actually working on the project. It's possible they're waiting for perl6). psh? we can do better than that. ^_-

my favorite idea so far is "posh"- the "Perl Only SHell", or perhaps "Perl Optimized SHell". I mean, it's posh-- all the cool kids will be using it. Dictionary.com offers this definition: "Smart and Fashionable". Now come on, wouldn't you like that to read "Smart and Fashionable. See also 'Perl Only SHell'"?

Still, this acronym is sort of vanilla-- it doesn't involve any recursion or other such neatness, and doesn't call upon the forces of GNU. Any monks out there got any ideas on what to call this beauty once smarter folk than I bring her to the light of day?

wandering the halls,
--au

Thanks to tye for his new super search, which made pulling this post together a breeze

Replies are listed 'Best First'.
Re: acronym for perl shell?
by dreadpiratepeter (Priest) on Aug 06, 2002 at 13:57 UTC
    Hmm, a shell around a perl, shouldn't it be called oyster?

    -pete
    "Pain heals. Chicks dig scars. Glory lasts forever."
Re: acronym for perl shell?
by Abigail-II (Bishop) on Aug 06, 2002 at 14:14 UTC
    Since we have a 'Bourne shell' and a 'Korn shell', anything named 'posh' will stand for 'Porn shell'.

    Abigail

Re: acronym for perl shell?
by ferrency (Deacon) on Aug 06, 2002 at 14:46 UTC
    There already is a Perl Shell, called Psh, available on CPAN. It's still pre-release. It mostly works, but has some bugs.

    Alan

      An article about Psh by Gregor N. Purdy you will find in issue 18 (Summer 2000) of The Perl Journal.
      In this article the author describes his shell and also compares it to eight other Perl shells like Larry Walls " while (<>) { eval; print $@; } "simple shell, the perl debugger, timtosh etc.pp.
      Probably a good first read about Perl shells.

      Hanamaki

        Just to add to the article info about PSH.pm:

        • Line editing: PSH.pm does not support command line editing per se. I'm using WinNT/Win2k and the Command Prompt window provides all command line editing and history features I need. If anyone likes PSH.pm and wants to extend it to optionaly use Term::ReadLine or something, I'm ready to help.
        • Job Control: Since I'm using (and expecting others to use) PSH.pm usualy for debuging and testing things, then as a real shell I did not consider things like that. Besides ... you have the full power of Perl at your fingertips, you may do whatever you like.
        • Piping: Any line starting with ! is passed to the default shell for processing. With only one speciality, if the line ends with a > then the output of the command will not be printed but stored in variable $it. Therefore if the default shell supports pipes ...

        PSH.pm was never expected to be a real shell. It was more influenced by the interactive development interfaces of Prolog or ML.

        Jenda

Re: acronym for perl shell?
by lachoy (Parson) on Aug 06, 2002 at 16:46 UTC

    You could always have: Perl Interactive Shell/Perl Optimized Shell: pishposh
    Perl Terrifically Optimized Shell: ptosh
    Perl Interactive Shell: pinsh
    Perl Object-Oriented Shell: poosh

    Update: Another one -- Perl Evil Shell: peevish

    Chris
    M-x auto-bs-mode

Re: acronym for perl shell?
by mojotoad (Monsignor) on Aug 06, 2002 at 19:44 UTC
    Don't be so quick to dismiss 'psh'! In addition to being straightforward, there is a huge Pavlovian win by naming a shell after the sound of popping the top on a tall boy.

    Matt

Re: acronym for perl shell?
by moxliukas (Curate) on Aug 06, 2002 at 15:05 UTC

    I have been toying with a similar idea a while ago. What I have come up was a simple read->eval loop, written in Perl. I was not very proficient at Perl at a time and this was done only as an exercise to learn some new things in Perl (Well, I'm not proficient at Perl even now ;)

    Anyway, I have called this thing perlsh which seemed to roll off the tongue nicely ;) If you want to have a look at it, you can find it here (zip format)

Re: acronym for perl shell?
by xylus (Pilgrim) on Aug 06, 2002 at 16:14 UTC
    Something that came to mind right away when I read the title....

    "plush" - PerL Unified SHell
    perl -e '$_=$0;split??;chop$_;$;=pop@_;$;++for(0..9060420);$_.=reverse +$;;print'
Re: acronym for perl shell?
by tbone1 (Monsignor) on Aug 06, 2002 at 17:18 UTC
    Hm. I dunno; if we call it 'posh', folks might think it stands for "Pile Of ----"

    --
    tbone1
    As God is my witness, I thought turkeys could fly.

Re: acronym for perl shell?
by cowens (Beadle) on Aug 06, 2002 at 15:16 UTC
    How about pips which would expand to "pips is (a) perl shell"?
Re: acronym for perl shell?
by Rex(Wrecks) (Curate) on Aug 06, 2002 at 21:35 UTC
    <joke>
    How about: Perls Efficient Epidermis -- PEE

    Newbie: What shell do you use?
    Old Hand: I use PEE, boy! And if ya want, I'll show ya howta PEE yer way through jest bout anythin!
    </joke>

    "Nothing is sure but death and taxes" I say combine the two and its death to all taxes!
      Dare we mention the Perl Interactive (Secure?) Shell?

      Whoops. I just did.

      Matt

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://188024]
Approved by MrCromeDome
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (None)
    As of 2024-04-25 03:56 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found