Strange bug with csh.
I use tcsh as my shell.
The strange thing is that /etc/profile.d/bsd-games-login-fortune.csh gets executed for all shells, not just login ones. I mean, when i run "su" I get a fortune: Code:
locky@netbook:~% su locky I cannot run "less" command as for every file it shows less'ed fortune text. (different each time). As a temporary workaround, I chmodded -x /etc/profile.d/bsd-games-login-fortune.csh, but it seems like a bug in Slackware. |
None of that happens for me, I would check out your ~/.login and ~/.tcsrc. Things to consider:
Are you starting tcsh as `tcsh -l` ? 'su' to root keeps you in /bin/tcsh ? Does this happen when executing a script ? Are commands you do not want to run except when logging in bracketed by Code:
if ($?prompt) then Code:
set path = ( $path /usr/games ) Code:
set path = ( /usr/local/bin /bin /usr/games ) John |
Quote:
Code:
locky@netbook:~> cat /etc/profile.d/bsd-games-login-fortune.csh |
All times are GMT -5. The time now is 01:28 PM. |