zsh-users
 help / color / mirror / code / Atom feed
From: Dan Nelson <dnelson@emsphone.com>
To: Bart Schaefer <schaefer@candle.brasslantern.com>
Cc: Paul Lew <paullew@cisco.com>, zsh-users@sunsite.auc.dk
Subject: Re: zsh debug tracing with timestamp
Date: Sun, 15 Apr 2001 15:22:51 -0500	[thread overview]
Message-ID: <20010415152251.A29874@dan.emsphone.com> (raw)
In-Reply-To: <1010415194943.ZM11223@candle.brasslantern.com>; from "Bart Schaefer" on Sun Apr 15 19:49:43 GMT 2001

In the last episode (Apr 15), Bart Schaefer said:
> On Apr 14, 11:47pm, Paul Lew wrote:
> } Subject: zsh debug tracing with timestamp
> }
> } Any method to insert timestamp in front of the trace command turned on
> } by set -x?
> 
> Yes, if you're using 3.1.6 or later.  Just set PS4 using any of the usual
> prompt expansion escapes, e.g.:
> 
> % PS4=': %D %T ; '
> % set -x
> % sleep 5; echo hello
> : 01-04-15 12:43 ; sleep 5
> : 01-04-15 12:43 ; echo hello
> hello
> 
> If you need finer granularity, setopt promptsubst and use $SECONDS:

not needed; just use %D{%Y-%m-%d %H:%M:%S}, which will give you
seconds.

-- 
	Dan Nelson
	dnelson@emsphone.com


      reply	other threads:[~2001-04-15 20:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-15  6:47 Paul Lew
2001-04-15 19:49 ` Bart Schaefer
2001-04-15 20:22   ` Dan Nelson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010415152251.A29874@dan.emsphone.com \
    --to=dnelson@emsphone.com \
    --cc=paullew@cisco.com \
    --cc=schaefer@candle.brasslantern.com \
    --cc=zsh-users@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).