You are not logged in.
I use tcsh and on logging into the box, my tcsh shell displays
MANPATH: Undefined variable.
>
Note the ">" character. My local .tcshrc is not being executed and there is NO /etc/tcshrc. Any ideas ? Has anyone else run into this problem ? My Arch box has been running quietly for over a year.
thanks
Offline
Fixed it. I am guessing that KDE is majorly b0rked.
1. in /etc/csh.cshrc
Moved the MANPATH code to the very top BEFORE any of the /etc/profile.d/* files are called
2. in /etc/profile.d/kde.csh - this file is definitely b0rked.
modified
setenv PKG_CONFIG_PATH $KDEDIR/lib/pkgconfig:$PKG_CONFIG_PATH
to
if ( ! $?PKG_CONFIG_PATH ) then
setenv PKG_CONFIG_PATH $KDEDIR/lib/pkgconfig
else
setenv PKG_CONFIG_PATH $KDEDIR/lib/pkgconfig:$PKG_CONFIG_PATH
endif
If you wish to avoid step 1, you can give step2 style protection to the MANPATH variable too in /etc/profile.d/kde.csh
Didn't take too long to track down, but a waste of time nonetheless. Hope this helps somebody else too.
Offline
MANPATH is defined in /etc/csh.cshrc
Offline
I know, but /etc/profile.d/kde.csh is being called by /etc/csh.cshrc even before /etc/csh.cshrc itself initializes the MANPATH variable, and /etc/profile.d/kde.csh just assumes that MANPATH already exists and starts using it.
End result is the /etc/profile.d/kde.csh references a non-existing variable, MANPATH, and all initialization grinds to a halt, leaving me with a ">" prompt!
Offline
A lot of packages only provide a sh script in /etc/profile.d
If you use kdm, you can make this link:
ln -s /etc/profile /etc/xprofile
that way the sh scripts in profile.d will be sourced.
Offline
The correct way to fix this is in the package, by invoking "#!/usr/bin/env sh" at the start of the script.
Offline
The correct way to fix this is in the package, by invoking "#!/usr/bin/env sh" at the start of the script.
That's an old thread. If it's not fixed yet, please submit a bug report.
Offline