[Bug 849609] New: perl-homedir.csh causes login error for users with CSH as default shell

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

            Bug ID: 849609
          Keywords: Patch
        QA Contact: extras-qa@xxxxxxxxxxxxxxxxx
          Severity: medium
  External Bug URL: http://rt.cpan.org/Public/
          Clone Of: 849094
           Version: 17
          Priority: medium
                CC: fdanapfe@xxxxxxxxxx, iarnell@xxxxxxxxx,
                    mmaslano@xxxxxxxxxx,
                    perl-devel@xxxxxxxxxxxxxxxxxxxxxxx, ppisar@xxxxxxxxxx
          Assignee: iarnell@xxxxxxxxx
           Summary: perl-homedir.csh causes login error for users with CSH
                    as default shell
        Regression: ---
      Story Points: ---
    Classification: Fedora
                OS: Linux
          Reporter: ppisar@xxxxxxxxxx
              Type: Bug
     Documentation: ---
          Hardware: All
        Mount Type: ---
            Status: ASSIGNED
         Component: perl-local-lib
           Product: Fedora
   External Bug ID: CPAN 60072

+++ This bug was initially created as a clone of Bug #849094 +++

Description of problem:
If the package "perl-homedir" is installed users that use CSH as their default
login shell get an error "if: Expression Syntax." during login. Removing
/etc/profile.d/perl-homedir.csh fixes the issue.


Version-Release number of selected component (if applicable):
perl-homedir-1.008004-4

How reproducible:
always

Steps to Reproduce:
1. adduser -s /usr/bin/csh cshtest
2. yum install perl-homedir 
3. su - cshtest

Actual results:
[root]# su - cshtest
if: Expression Syntax.
[cshtest]$

Expected results:
The error "if: Expression Syntax." should not be displayed

--- Additional comment from ppisar@xxxxxxxxxx on 2012-08-20 09:02:10 GMT ---

Thank you for the report. The file is not in CSH syntax.

--- Additional comment from ppisar@xxxxxxxxxx on 2012-08-20 09:16:33 GMT ---

Even fixing the profile script does not help because CSH replaces end-of-lines
in command substitution output making the eval statement not working:

# su -l -s /bin/tcsh test
setenv: Too many arguments.
$ 
$ perl -Mlocal::lib
setenv PERL_LOCAL_LIB_ROOT "/home/test/perl5"
setenv PERL_MB_OPT "--install_base /home/test/perl5"
setenv PERL_MM_OPT "INSTALL_BASE=/home/test/perl5"
setenv PERL5LIB
"/home/test/perl5/lib/perl5/x86_64-linux-thread-multi:/home/test/perl5/lib/perl5"
setenv PATH "/home/test/perl5/bin:$PATH"
$ eval `perl -Mlocal::lib`
setenv: Too many arguments.

This is tracked by upstream bug
<https://rt.cpan.org/Public/Bug/Display.html?id=60072>.

--- Additional comment from ppisar@xxxxxxxxxx on 2012-08-20 10:37:29 GMT ---

Created attachment 605657
Enable eval in CSH

--- Additional comment from ppisar@xxxxxxxxxx on 2012-08-20 10:38:05 GMT ---

Created attachment 605658
Fixed CSH profile script

-- 
You are receiving this mail because:
You are on the CC list for the bug.
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel



[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux