Josip Rodin wrote:
Oh. These seemingly random expansions have always surprised me. The other day I just happened to stumble upon that when writing:
if ((Connect-Info != "NONE") && (Connect-Info < "%Y%m%d")) {
It would be good if this was documented somewhere - I actually looked in the unlang manual page for a way to get a date string, but found nothing.
doc/variables.txt
However, the VARIABLES section doesn't mention that those date-format strings are actually treated as variables whose names are single letters. It does mention the results of regular expression matches, where there are eight variables whose names are single numbers, so this looks like an omission.
There are a bunch more single-character expansions that get done.
I'd write a proper patch, but I haven't looked at the source yet, to see which exact set of date formats are supported...?
See doc/variables.txt Adding more "man" pages would be a good idea. But the "unlang" page is already pretty big. Alan DeKok.