On Thu, 04 May 2023 21:41:26 -0000, Klemens Nanni wrote: > On Thu, May 04, 2023 at 03:30:30PM -0600, Todd C. Miller wrote: > > This fixes two issues with the parsing of random values: > > > > 1) A random value with a step is now rejected. For example: > > > > ~/10 * * * * echo invalid > > I've ben using ~/10 to randomly distribute four similar tasks so that > they don't start at the same time. > > Is that wrong?
I'm fairly certain that doesn't do what you think it does. When I tested it "~/10" behaved the same as "~". The step value is not even parsed. It sounds like what you want is the proposed syntax "*/~10" to use a random offset. - todd
