Bug 225602

Summary: pin fails to install with tcsh
Product: [openSUSE] openSUSE 10.2 Reporter: Volker Kuhlmann <bugz57>
Component: OtherAssignee: Martin Lasarsch <martin.lasarsch>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None    
Version: RC 1   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Volker Kuhlmann 2006-12-02 08:25:45 UTC
Both $USER and root have tcsh set as their login shell. Running pin for the first time makes it barf badly. Some part is obviously running sh code in a tcsh.

Oh and while someone's at it, insert a space into "rootpassword".


linux|softest[3]:~> pin motif

 *** pin found no ARCHIVES_10.2.gz file in /var/lib/pin/

    pin will copy the files,  please enter rootpassword :

Password:
Exit 1
export: Command not found.
Exit 1
VER=0.36: Command not found.
Exit 1
Illegal variable name.
Exit 1

linux|softest[3]:~> echo $SHELL
/bin/tcsh

linux|softest[3]:~> su - -c 'echo $SHELL'
Password:
/bin/tcsh
Comment 1 Matej Horvath 2006-12-04 03:03:49 UTC
Please, post which version of pin and tcsh do you have. 

Thank you.
Comment 2 Volker Kuhlmann 2006-12-04 08:35:15 UTC
Versions as per 10.2RC1.
> rpm -q pin tcsh
pin-0.36-6
tcsh-6.14.00-42

It is easily reproducible:
root: chsh -> /bin/tcsh
user: chsh -> /bin/tcsh
rm -rf /var/lib/pin
su - user
pin something
Shell errors after entering the root password.

The problem does not occur when pin is run for the first time by root.
Comment 3 Volker Kuhlmann 2007-03-27 08:55:54 UTC
This is still not fixed. pin is non-functional for tcsh users. I have located the problem and added discusion and fix to bug #188068
Comment 4 Christian Boltz 2007-04-05 18:56:23 UTC
"rootpassword" has a space inside in the CVS version -> FIXED

I could reproduce your problem when using   su -c /bin/tcsh   in pin, so I hope the fix I just proposed in bug 188068 will solve the tcsh problem ;-)

The tcsh problems are discussed in bug 188068 now, so I will mark this one as duplicate.

*** This bug has been marked as a duplicate of bug 188068 ***
Comment 5 Christian Boltz 2007-04-07 00:02:24 UTC
For the records:

(In reply to comment #4)
> I could reproduce your problem when using   su -c /bin/tcsh   in pin,

This should read   su  -s  /bin/tcsh   or, as complete command line,
su - root -s /bin/tcsh -- "$0" "$@"