Allow day inputs with leading zeros #1
The syntax is a little obtuse (as bash can be sometimes). Would you mind adding a comment to the code describing what it does?
Sure.
There you are.
The $(()) evaluates the expression as arithmetic; in this case, that removes a leading 0. Then the 10# means to interpret it as base-ten; otherwise "08" would be detected as an octal and throw an error.
Slick! Where did you learn those fancy tricks? Is the 10# something that only works within the arithmetic eval ($(( )))?
Yeah, I think it's specific to $(()). I'm not 100% sure though.
I think I first learned it when I started scripting automatic tracking of my writing goals, which required a ton of date handling...
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?