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

Bug#5384: tcsh reads .login before .tcshrc



thks for reporting, vadik (maintainer) will be back this weekend


Hi W, You wrote:
 W.>
 W.> package: tcsh version: 6.06-5
 W.>
 W.> tcsh reads .login before .tcshrc... this is both an inconvenient
 W.> change (it breaks my dotfiles anyway :-), and not documented --
 W.> the man page specifically says:
 W.>
 W.>        A login shell begins by executing commands from the system
 W.>        files /etc/csh.cshrc and /etc/csh.login. It then executes
 W.>        commands from files in the user's home directory: first
 W.>        ~/.tcshrc (+) or, if ~/.tcshrc is not found, ~/.cshrc,
 W.>        then ~/.history (or the value of the histfile shell vari-
 W.>        able), then ~/.login, and finally ~/.cshdirs (or the value
 W.>        of the dirsfile shell variable) (+). The shell may read
 W.>        /etc/csh.login before instead of after /etc/csh.cshrc, and
 W.>        ~/.login before instead of after ~/.tcshrc or ~/.cshrc and
 W.>        ~/.history, if so compiled; see the version shell vari-
 W.>        able. (+)
 W.>
 W.> The order currently used is clear from this bit of strace output:
 W.> open("/etc/csh.cshrc", O_RDONLY) = 0 open("/home/eichin/.login",
 W.> O_RDONLY) = 0 open("/home/eichin/.tcshrc", O_RDONLY) = 0
 W.> open("/home/eichin/.cshrc", O_RDONLY) = 4
 W.>
 W.> (and no, there's nothing but comments in /etc/csh.cshrc)
 W.>
 W.> I'd prefer that the old behaviour be restored, rather than
 W.> changing the documentation; I haven't checked if 6.07 fixes
 W.> this either way (or if it's actually out, rather than just in
 W.> nearly-ready test...)
 W.>
 W.> -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word
 W.> "unsubscribe" to debian-devel-REQUEST@lists.debian.org . Trouble?
 W.> e-mail to Bruce@Pixar.com


borik
d879e90x8

--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com


Reply to: