@Cykelero you are just referencing a magic variable called SECONDS built into bash (and zsh). There are a few others that do ‘interesting’ things too!
Top-level
@Cykelero you are just referencing a magic variable called SECONDS built into bash (and zsh). There are a few others that do ‘interesting’ things too! 6 comments
@grumpyoldtechie @Cykelero yep, it’s a bash-ism. Nothing to do with posix Bourne shell. Not sure about ksh. @grumpyoldtechie @Cykelero looks like ksh also has SECONDS but theirs is more sensible, which is generally true of ksh vs bash in my experience: |
@tastapod @Cykelero MINUTES? YEARS?