shacker
Jun 6 2005, 11:09 PM
A customer who prefers tcsh complained that he had no history -- couldn't use the up/down arrow keys in the shell, and no .history file was being created. I tested this as a normal user with this in my .tcshrc :
set history = 50
set savehist
logged out and in again, and he's right -- no history file, no arrow key history, no !! history.
History in bash works fine for all users. Any idea what's breaking here or where to fix it? Thanks.
Gary Simat
Jun 7 2005, 04:02 PM
that shell doesnt store a hist file
shacker
Jun 7 2005, 04:20 PM
Hi Gary - Do you mean tcsh doesn't save history under cPanel, or anywhere?
And even without a histfile, you should still get up/down arrow history, which you don't under tcsh/cPanel but do under tcsh on other systems. Is tcsh compiled without any history mechanisms for cPanel? If so, why?
Thanks,
Scot
shacker
Jun 8 2005, 01:02 AM
The more reading I do about tcsh and history, the more baffling it becomes. tcsh absolutely does store history, and it absolutely does store a history file if you've set:
set savehist
in your .tcshrc or .cshrc. It just doesn't work under cPanel. Suggestions still welcome.
Alex Morgan
Oct 26 2005, 03:54 PM
You have to set the number of lines of history to save to the history file, not just set the variable without binding a number to it.
Try:
set savehist = 1000
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.