bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sh -x but also show me the times when each line was executed


From: Chet Ramey
Subject: Re: sh -x but also show me the times when each line was executed
Date: Mon, 8 Jul 2002 13:01:44 -0400

> Idea: bash needs an additional capability: a cross between sh -x and
> syslog.
> 
> Problem: I can do sh -x some_program, but I can't see the times when
> each line was executed, without say, rewriting the program to do that.

PS4='+ $(date) [$LINENO] ' bash -x somescript

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)

Chet Ramey, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]