[Bug 1186698] New: /etc/profile.d/perl-homedir.csh contains bourne shell "if" code. Makes tcsh prompt "if: Expression Syntax."

bugzilla at redhat.com bugzilla at redhat.com
Wed Jan 28 10:37:16 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1186698

            Bug ID: 1186698
           Summary: /etc/profile.d/perl-homedir.csh contains bourne shell
                    "if" code. Makes tcsh prompt "if: Expression Syntax."
           Product: Fedora EPEL
           Version: el6
         Component: perl-local-lib
          Assignee: psabata at redhat.com
          Reporter: eskil at ifi.uio.no
        QA Contact: extras-qa at fedoraproject.org
                CC: iarnell at gmail.com, perl-devel at lists.fedoraproject.org,
                    psabata at redhat.com



Description of problem:

/etc/profile.d/perl-homedir.csh contains bourne shell "if" code. Makes tcsh
prompt "if: Expression Syntax."

/etc/profile.d/perl-homedir.csh is in the perl-homedir RPM package.

Version-Release number of selected component (if applicable):

perl-homedir-1.006007-3.el6.noarch

How reproducible:

Every time.

Steps to Reproduce:
1. install tcsh and perl-local-lib and perl-homedir.
2. invoke tcsh

Actual results:

$ tcsh
if: Expression Syntax.


Expected results:

$ tcsh
$

Additional info:

Offending bourne shell (bash) code in /etc/profile.d/perl-homedir.csh :
----
# if system default
if [ "x$PERL_HOMEDIR" = "x1" ] ; then

    eval `perl -Mlocal::lib`
fi
----

Suggested solution: 

Either remove the /etc/profile.d/perl-homedir.csh or put proper csh code in the
file.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=VxL9E8n8mz&a=cc_unsubscribe



More information about the perl-devel mailing list