Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-12-2003, 11:33 PM   #1
Registered: Feb 2003
Location: huntsville, al
Distribution: debian, opensolaris
Posts: 99

Rep: Reputation: 15
tcsh history display format

I have been trying to make tcsh change its default history display format. Say, for history event 5, vi, executed at 10:00pm on 10/12/03 it would show this:

5 12-Oct-03 22:00 vi

I want it to display something like that. I saw it on another box using tcsh. Many, many sources (including tcsh manpage) say that you can change the history display format with the same codes you use to change the prompt, like this:

set history=500 "%h %D-%w-%Y %T %R\n" savehist=500 merge

I was able to get the prompt I wanted. And I got the shell to save history to ~/.history also. But the above line in .tcshrc prevents me from accessing saved history, and gives the message:

set: Variable name must begin with a letter.

when I login. Am I not supposed to put quotes around the code, or use brackets or something? The manpage says the code is supposed to be the 'optional second word.' Am I supposed to put a character in front of it?
Old 10-12-2003, 11:42 PM   #2
Registered: Feb 2003
Location: huntsville, al
Distribution: debian, opensolaris
Posts: 99

Original Poster
Rep: Reputation: 15

5 minutes after I post, I figure it out.
I need to put set history=(500 "%h %D-%w-%Y %T %R\n") savehist=(500 merge)

sorry to bother you


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
format a hard drive (/dev/hda1) in Reiser fs format Linh Linux - General 7 06-17-2009 07:30 AM
How to format a long double number in C++ to display as many digits as possible. TruongAn Programming 4 11-09-2005 11:11 AM
Konqueror History display? and a couple other questions about Web apps DB9 Linux - Software 6 03-28-2004 01:27 PM
Format Problems Saving Star Office Docs in Word Format kkempter Linux - Software 4 08-27-2003 05:23 PM
tcsh history log twantrd Linux - General 3 06-25-2003 07:57 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:17 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration