Actions
Feature #21976
closedAdd $SECONDS, $RANDOM, and other bashisms
Feature #21976:
Add $SECONDS, $RANDOM, and other bashisms
Description
Some time ago there was a lot of discussion around a script named safe_sleep.sh in the GitHub Actions runner. Like many others, I immediately saw the serious problem with this script: it isn't written in Ruby!
To better support this use case, and to be able to sleep safely, Ruby should support $SECONDS as well as other bashisms like $RANDOM, $1, etc.
This would allow us to rewrite
In Ruby
For ease of evaluating this proposed feature I've have created the bashisms gem please give it a try!
Actions