LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 10-12-2003, 10:33 PM   #1
k4zau
Member
 
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, 10:42 PM   #2
k4zau
Member
 
Registered: Feb 2003
Location: huntsville, al
Distribution: debian, opensolaris
Posts: 99

Original Poster
Rep: Reputation: 15
d'oh

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
 
  


Reply


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 06:30 AM
How to format a long double number in C++ to display as many digits as possible. TruongAn Programming 4 11-09-2005 10:11 AM
Konqueror History display? and a couple other questions about Web apps DB9 Linux - Software 6 03-28-2004 12:27 PM
Format Problems Saving Star Office Docs in Word Format kkempter Linux - Software 4 08-27-2003 04:23 PM
tcsh history log twantrd Linux - General 3 06-25-2003 06:57 AM


All times are GMT -5. The time now is 06:45 AM.

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