From owner-freebsd-questions@FreeBSD.ORG Fri Apr 24 13:35:33 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4F5011065674 for ; Fri, 24 Apr 2009 13:35:33 +0000 (UTC) (envelope-from martin@dc.cis.okstate.edu) Received: from dc.cis.okstate.edu (dc.cis.okstate.edu [139.78.103.93]) by mx1.freebsd.org (Postfix) with ESMTP id 207808FC15 for ; Fri, 24 Apr 2009 13:35:32 +0000 (UTC) (envelope-from martin@dc.cis.okstate.edu) Received: from dc.cis.okstate.edu (localhost.cis.okstate.edu [127.0.0.1]) by dc.cis.okstate.edu (8.14.2/8.13.8) with ESMTP id n3ODZMje008187 for ; Fri, 24 Apr 2009 08:35:22 -0500 (CDT) (envelope-from martin@dc.cis.okstate.edu) Message-Id: <200904241335.n3ODZMje008187@dc.cis.okstate.edu> To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <8185.1240580122.1@dc.cis.okstate.edu> Date: Fri, 24 Apr 2009 08:35:22 -0500 From: Martin McCormick Subject: Re: Format of history output Sometimes is very Different. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Apr 2009 13:35:34 -0000 Matthew Seaman writes: > tcsh(1) includes timestamps in it's .history. bash(1) doesn't. > Not sure about other shells, but the historical (ahem!) behaviour > > of csh(1) was not to use timestamps, and I think most shells subsequently > developed have carried on the same history format, with > > tcsh(1) being the exception. Thanks to you and "N. Raghavendra" for your help. That has got to be what I did. On the times I have seen this, I was in a hurry and may have somehow invoked tcsh as I never use it normally. The prompt defaults to a > symbol. If one runs the command tcsh history, tcsh gives an error as there is no such file called history but if you launch tcsh at the command prompt and then execute history, that is the very output I was talking about. I am still not sure how I didn't notice the different prompt and the fact that I was in some other kind of shell, but I guess some of us are crazier than we like to admit. At least I now know what generates that output and why I couldn't find anything in the bash documentation. The closest I get to tcsh is csh in root. Again, many thanks. Martin McCormick WB5AGZ Stillwater, OK Systems Engineer OSU Information Technology Department Telecommunications Services Group