psh
psh is a fast and and flexible shell with a Perl 5 syntax. Because it is written in Perl 5, psh has ready access to Perl's regular expression engine and flexible data structures. Additionally psh is very fast at mathematical operations, including floating point arithmetic which Bash lacks entirely.
The Perl Shell is very "old school" in that it is not possible to configure it to use a Perl syntax newer than the interpreter's default. Thus, new features such as say are not available with a Perl 5.x interpreter, consistently psh has an early-90's Perl feel to it. Long standing Perl users may find this design decision "retro" but those coming from the perspective of either the modern Modern Perl movement or the Raku programming language may find the experience to be jarring or limiting.
Installation
USE flags
USE flags for app-shells/psh Combines the interactive nature of a Unix shell with the power of Perl
Emerge
root #
emerge --ask app-shells/psh
Configuration
Environment variables
Files
- ~/.pshrc - the user's shell profile.
Removal
Unmerge
root #
emerge --ask --depclean --verbose app-shell/psh
See also
- Bash — the default shell on Gentoo systems and a popular shell program found on many Linux systems.
- Busybox — a utility that combines tiny versions of many common UNIX utilities into a single, small executable.
- Perl — a general purpose interpreted programming language with a powerful regular expression engine.
- Raku — a high-level, general-purpose, and gradually typed programming language with low boilerplate objects, optionally immutable data structures, and an advanced macro system.