Skip to content

Suggestion from MS-DOS #18

@Vershner

Description

@Vershner

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions