tdenniston / bish

Bish is a language that compiles to Bash. It's designed to give shell scripting a more comfortable and modern feel.
MIT License
1.48k stars 36 forks source link

Function to test values #17

Closed egorsmkv closed 8 years ago

egorsmkv commented 9 years ago

The idea: to make a function to check the types of values. For example, for the numbers, floating point numbers, or Boolean values.

This will improve the code of the programs significantly.

egorsmkv commented 9 years ago

Also, it would be convenient to make some kind of modifier, if you need to execute the command from the administrator.

egorsmkv commented 9 years ago

Add a similar function to retrieve data from the user.

def input() {
    @(read t);
    return t;
}

somevar = input();