Commit Graph

6 Commits

Author SHA1 Message Date
John Hein
54637e7ee1 Ensure csh syntax is used for C shell even if SHELL env var is unset.
We know we're running from C shell in perl-homedir.csh, so be
explicit rather than letting local::lib guess.

If the SHELL environment variable is not set, perl -Mlocal::lib is
fooled into emitting bourne shell syntax (e.g., export FOO=bar)
instead of csh syntax (setenv FOO bar).  This can be fatal to the
C shell possibly interrupting execution of a script before the
script has completed.

This (no SHELL variable set) can happen, for instance, when running a
cron job.

See also:
https://bugzilla.redhat.com/show_bug.cgi?id=2122359
https://issues.redhat.com/browse/RHEL-5545

Signed-off-by: John Hein <c0eh3p702@sneakemail.com>
2023-11-21 22:38:59 -07:00
Petr Písař
dc76f6baf8 Parse perl-homedir configuration bash syntax by csh profile script 2014-07-25 10:06:03 +02:00
Petr Písař
659dfb8414 Fix setting undefined variable in CSH 2013-11-21 13:59:57 +01:00
Petr Písař
f0e34f9bcc Fix CSH support 2012-08-20 12:42:06 +02:00
Iain Arnell
b3d1b96b90 avoid creating ~/perl5/ for all users (rhbz#789146) 2012-02-10 06:20:29 +01:00
Chris Weyl
de4000428c - add perl-homedir subpackage 2010-01-05 02:29:12 +00:00