bug-bash
[Top][All Lists]
Advanced

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

Re: SECONDS variable not shown from set, not updated properly


From: Chet Ramey
Subject: Re: SECONDS variable not shown from set, not updated properly
Date: Mon, 02 Jun 2003 10:19:41 -0400

> Machine Type: i686-pc-linux-gnu
> 
> Bash Version: 2.05a
> Patch Level: 0
> Release Status: release
> 
> Description:
>         SECONDS doesn't initially show in the output of the set
>         command.  It only shows up after $SECONDS has been referenced,
>         and even then is not updated in that output.

This is by design.  Dynamic variables like SECONDS don't really exist
until they're referenced directly, and are not updated unless they are
referenced directly.

Chet

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

Chet Ramey, ITS, CWRU    chet@po.CWRU.Edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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