Date: Thu, 23 Apr 2009 22:32:13 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Martin McCormick <martin@dc.cis.okstate.edu> Cc: freebsd-questions@freebsd.org Subject: Re: Format of history output Sometimes is very Different. Message-ID: <49F0DE5D.8080607@infracaninophile.co.uk> In-Reply-To: <200904232031.n3NKVpwx023000@dc.cis.okstate.edu> References: <200904232031.n3NKVpwx023000@dc.cis.okstate.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig9A9BA5C7D71A10E5AE22E673
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable
Martin McCormick wrote:
> the normal output of the history command resembles:
>=20
> 1 env
> 2 ssh system1.somedomain.com
> 3 scan cur
>=20
> etc.
>=20
> On occasion, I have seen a history output that shows the
> list of commands plus the time they were executed. I am not sure
> exactly how I got that output as I couldn't duplicate it on
> demand. Any ideas on what I did to get that alternative output?
>
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=20
subsequently developed have carried on the same history format, with
tcsh(1) being the exception.
Cheers,
Matthew
--=20
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
Kent, CT11 9PW
--------------enig9A9BA5C7D71A10E5AE22E673
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEAREIAAYFAknw3l0ACgkQ8Mjk52CukIyFgwCfeafh5dMh282hvOWgKNDi1IIO
UKYAn3F4a9etl3/rEQaYT0V45L7+CK+f
=7Xrf
-----END PGP SIGNATURE-----
--------------enig9A9BA5C7D71A10E5AE22E673--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49F0DE5D.8080607>
