Re: bash script question

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

 



Why are you capitalizing your variable?

$SECONDS seems to be a predefined builtin.


echo $SECONDS


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.

~Kyle

_______________________________________________
Blinux-list mailing list
Blinux-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/blinux-list




[Index of Archives]     [Linux Speakup]     [Fedora]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]