bash script question

Linux for blind general discussion blinux-list at
Mon Dec 12 17:23:19 UTC 2022

Why are you capitalizing your variable?

$SECONDS seems to be a predefined builtin.


from a shell where $SECONDS has never been exported gives some 
interesting results both in bash and zsh. In this case, $SECONDS is 
being initialized to 0, and it begins counting the seconds from the time 
it was initialized, which is why it actually shows the number of seconds 
that the quiz took even though there was no code to count the seconds. 
Hope this helps.


More information about the Blinux-list mailing list