Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 162323 - app-shells/tcsh-6.15-r5 : bug in /etc/csh.cshrc prevents sourcing ~/.cshrc
Summary: app-shells/tcsh-6.15-r5 : bug in /etc/csh.cshrc prevents sourcing ~/.cshrc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Fabian Groffen
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-16 05:49 UTC by Thomas Capricelli
Modified: 2007-01-16 22:05 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Capricelli 2007-01-16 05:49:58 UTC
since i've updated from 6.14-r3 to 6.14-r5, my users with tcsh shell have the following problem:
the screen display 
"if: Expression Syntax." and their usual environment is not used.
I've traced this down to the end of /etc/csh.cshrc, that i have never modified.
The end looks like : 

if ( $?prompt && -d /etc/profile.d ) then
       set nonomatch
       foreach i ( /etc/profile.d/*.csh )
              if ( -r $i ) then
                     source $i
              endif
       end
       unset i nonomatch
endif

And this is the if that gives the error. I dont know tcsh well enough to go any further..  Commenting this block solves the problem, but this is probably not the only solution.



Reproducible: Always




end of output of 'genlop tcsh'
     Wed Feb  1 18:52:06 2006 >>> app-shells/tcsh-6.14-r3
-> no bug
     Fri Jan  5 00:04:49 2007 >>> app-shells/tcsh-6.14-r5
-> bug
Comment 1 Fabian Groffen gentoo-dev 2007-01-16 10:17:59 UTC
Please check if you have java-config emerged recently.  It breaks tcsh, not tcsh itself.  Look into /etc/profile.d/java-config.csh to see if there is a "(-L" thing in there.

Please report on this.
Comment 2 Thomas Capricelli 2007-01-16 12:38:24 UTC
Genlop says :
     Sat Jan 13 19:26:56 2007 >>> dev-java/java-config-2.0.31-r1
and there is a line  :
-------
else if (-L $gentoo_system_vm) then
--------
in /etc/profile.d/java-config-2.csh
Comment 3 Fabian Groffen gentoo-dev 2007-01-16 12:41:22 UTC
ok, please try and emerge java-config to see if this error goes away.  The file is out of date.

@java team: please bump java-config for this fix.
Comment 4 Thomas Capricelli 2007-01-16 12:54:05 UTC
i removed the files /etc/profile.d/java*, and re-emerged, but this is the same version that gets emerged. and the problem is still there, of course.
Comment 6 Thomas Capricelli 2007-01-16 13:25:58 UTC
i had alrady changed the -L in -l, and it works. (i was just not 100% sure)

best regards :-)
Comment 7 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-01-16 14:19:51 UTC
(In reply to comment #3)
> @java team: please bump java-config for this fix.

Revbumped. Please wait few hours till java-config-2.0.31-r3 hits your rsync mirror.
Comment 8 Petteri Räty (RETIRED) gentoo-dev 2007-01-16 16:28:16 UTC
(In reply to comment #7)
> (In reply to comment #3)
> > @java team: please bump java-config for this fix.
> 
> Revbumped. Please wait few hours till java-config-2.0.31-r3 hits your rsync
> mirror.
> 

*java-config-2.0.31-r2 (13 Jan 2007)

  13 Jan 2007; Petteri Räty <betelgeuse@gentoo.org>
  files/java-config-2.profiled.csh, -java-config-2.0.31-r1.ebuild,
  +java-config-2.0.31-r2.ebuild:
  The csh profile.d had a bug preventing it from working for root. Teaches you
  not to blindly trust stuff from users again.

As the user was using -r1, this should have fixed the login problems already, but probably bets to push the grobian stuff too for everyone.
Comment 9 Fabian Groffen gentoo-dev 2007-01-16 21:33:37 UTC
The mirrors seem to lag a lot lately, sorry for the pointless bump.
-r2 was good enough already.
Comment 10 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-01-16 22:05:22 UTC
(In reply to comment #9)
> The mirrors seem to lag a lot lately, sorry for the pointless bump.
> -r2 was good enough already.

I noticed there were some changes within a hour after -r2 to the .csh file, so there could be a sync window between that...