Help - Search - Members - Calendar
Full Version: tcsh history
The Planet Forums > Control Panels > cPanel/WHM
shacker
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
that shell doesnt store a hist file
shacker
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
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
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.
Invision Power Board © 2001-2009 Invision Power Services, Inc.