Skip to main content

Data types

This document describes which data types bashutils can understand.

?

Denotes a lack of data types. This means any data type is accepted.

bool

Booleans. May only be true or false. 1 or 0 is not supported and will be treated as a number instead.

char

Aa single character, for example A, ! or even .

str

A sequence of characters. This may be Hello World!, I am an example text or something entirely different.

byte

Accepts numbers between 0 and 255.

int

Accepts numbers between −9223372036854775807 and 9223372036854775807. Any numbers outside of this range aren't representable by bash.

Usage in arguments

You may see <str:message> or something across this documentation. The str in this example represents the expected data type, whilst message represents the argument name.