Open mathieulallier807 opened 4 years ago
:-
is special in bash/zsh variable expansion, so the current code works fine. If you omit, the -
, your results may vary.
Using numeric character will make an empty string. Using a alphabetic character will cause a syntax error (zsh: unrecognized modifier
).
If you use :=
instead of :-
, it will actually set the variable if it isn't set already.
Or update README to
default: -1