-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Just saw your talk at NDC Oslo - marvellous!
Here's a great feature from MS-DOS batch script:
Variables whose contents start with a non-zero integer are considered to be numbers. Okay...
Variables whose contents start with "0x" are considered to be hex. That's not too bad, but...
Variables whose contents start with"0" are considered to be octal. Err....
...except, of course, 08 & 09 are not valid octal and so throw an error whenever they're evaluated.
Years ago I spent weeks trying to figure out why my weekly backup script would occasionally fail.
I think this has great potential to be expanded as well:
Variables starting with "01" should be assumed to be binary.
Variables starting with "00" should be assumed to be international telephone numbers.