SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-Shell-Guess rpm build for : OpenSuSE. For other distributions click perl-Shell-Guess.

Name : perl-Shell-Guess
Version : 0.09 Vendor : obs://build_opensuse_org/devel:languages:perl
Release : lp154.1.1 Date : 2023-01-27 17:27:13
Group : Development/Libraries/Perl Source RPM : perl-Shell-Guess-0.09-lp154.1.1.src.rpm
Size : 0.05 MB
Packager : https://www_suse_com/
Summary : make an educated guess about the shell in use
Description :
Shell::Guess makes a reasonably aggressive attempt to determine the shell
being employed by the user, either the shell that executed the perl script
directly (the \"running\" shell), or the users\' login shell (the \"login\"
shell). It does this by a variety of means available to it, depending on
the platform that it is running on.

* * getpwent

On UNIXy systems with getpwent, that can be used to determine the login
shell.

* * dscl

Under Mac OS X getpwent will typically not provide any useful information,
so the dscl command is used instead.

* * proc file systems

On UNIXy systems with a proc filesystems (such as Linux), Shell::Guess will
attempt to use that to determine the running shell.

* * ps

On UNIXy systems without a proc filesystem, Shell::Guess will use the ps
command to determine the running shell.

* * Win32::Getppid and Win32::Process::List

On Windows if these modules are installed they will be used to determine
the running shell. This method can differentiate between PowerShell,
\'command.com\' and \'cmd.exe\'.

* * ComSpec

If the above method is inconclusive, the ComSpec environment variable will
be consulted to differentiate between \'command.com\' or \'cmd.exe\'
(PowerShell cannot be detected in this manner).

* * reasonable defaults

If the running or login shell cannot be otherwise determined, a reasonable
default for your platform will be used as a fallback. Under OpenVMS this is
dcl, Windows 95/98 and MS-DOS this is command.com and Windows
NT/2000/XP/Vista/7 this is cmd.exe. UNIXy platforms fallback to bourne
shell.

The intended use of this module is to enable a Perl developer to write a
script that generates shell configurations for the calling shell so they
can be imported back into the calling shell using \'eval\' and backticks or
\'source\'. For example, if your script looks like this:


use Shell::Guess;
my $shell = Shell::Guess->running_shell;
if($shell->is_bourne) {
print \"export FOO=bar\
\";
} else($shell->is_c) {
print \"setenv FOO bar\
\";
} else {
die \"I don\'t support \", $shell->name, \" shell\";
}

You can then import FOO into your bash or c shell like this:

% eval `perl script.pl`

or, you can write the output to a configuration file and source it:

% perl script.pl > foo.sh
% source foo.sh

Shell::Config::Generate provides a portable interface for generating such
shell configurations, and is designed to work with this module.

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-S/15.4/noarch

Content of RPM  Provides Requires

Download
ftp.icm.edu.pl  perl-Shell-Guess-0.09-lp154.1.1.noarch.rpm
     

Provides :
perl(Shell::Guess)
perl-Shell-Guess

Requires :
perl(:MODULE_COMPAT_5.26.1)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1


Content of RPM :
/usr/lib/perl5/vendor_perl/5.26.1/Shell
/usr/lib/perl5/vendor_perl/5.26.1/Shell/Guess.pm
/usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
/usr/share/doc/packages/perl-Shell-Guess
/usr/share/doc/packages/perl-Shell-Guess/Changes
/usr/share/doc/packages/perl-Shell-Guess/README
/usr/share/doc/packages/perl-Shell-Guess/author.yml
/usr/share/doc/packages/perl-Shell-Guess/corpus
/usr/share/doc/packages/perl-Shell-Guess/corpus/print_guess.pl
/usr/share/licenses/perl-Shell-Guess
/usr/share/licenses/perl-Shell-Guess/LICENSE
/usr/share/man/man3/Shell::Guess.3pm.gz

 
ICM