Results 1 to 4 of 4

Thread: tcsh history

  1. #1
    Member
    Join Date
    Feb 2005
    Posts
    240

    Default tcsh history

    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 other shells works fine for all users. Any idea what's breaking here or where to fix it? Thanks.

  2. #2
    Member bijo's Avatar
    Join Date
    Aug 2004
    Location
    India
    Posts
    475

    Default

    Hello,

    Please check the following file in his home directory
    .bash_history
    Or you can also find out the file by using this command in Redhat system
    echo $HISTFILE

    Let me know the status.
    Bijo
    Yahoo: "bijo505"
    Msn: "bijo_baby@hotmail.com"
    AIM: "bijobaby"

    http://slashome.com

  3. #3
    Member nickb's Avatar
    Join Date
    Feb 2005
    Location
    India
    Posts
    347

    Default

    In order for the history list to be saved in the history file, you must make sure that the savehist variable is set to the number of commands that you want to be saved. Also check histfile tcsh variable.

    For more info check the link below....

    http://www.cs.sun.ac.za/~akruger/red...l12.htm#E68E88
    Last edited by nickb; 06-08-2005 at 02:52 AM.

  4. #4
    Member
    Join Date
    Feb 2005
    Posts
    240

    Default

    bijo, you're referring to bash, not tcsh. Again, history in bash is working fine. But thanks.

    nickb - those variables are definitely present (see my initial post).

    I manage two RHEL3 servers at the same datacenter, and only one of them has the problem, even though both have the exact same /bin/tcsh binary, and both have the exact same /etc/*csh* scripts. I can't for the life of me figure out where the different behavior is coming from.

    Even without a ~/.cshrc or ~/.tcshrc file, the user gets tcsh history on the other server. So there really shouldn't be any need for a dotfile to get even basic history working. Something is borked. But what?

    It seems that the .cshrc file is not even being read -- if I set an alias in it, log out an in again, the "alias" command does not show the new alias.

    Another weird thing: On the server with this problem, I get a "limit: No such limit." when launching tcsh.

    Thanks again,
    Scot

Similar Threads

  1. TCSH, can I set to default for account?
    By noimad1 in forum cPanel & WHM Discussions
    Replies: 12
    Last Post: 05-13-2009, 09:38 AM
  2. Log In History
    By PCZero in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 09-16-2008, 03:34 AM
  3. tcsh - Unknown colorls variable `do'.
    By cyberwisdom in forum cPanel & WHM Discussions
    Replies: 6
    Last Post: 05-11-2004, 02:31 PM