MIAOU-BASH is a collection of settings and helpers for leveraging BASH. Developer-friendly, it may be used as solo package with or without the miaou project.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

490 B

Documentation

prevent last false

function body should not end up with a ternary statement

wrong last

Compound of 2 'false' statement returns false.

[[ : ]] && [[ : ]]

right last

[[ : ]] && [[ : ]] || true

arithmetic issue

last (++) statement does not complete successfully!

wrong ++

count=0
(( ++count )) # ok 
(( ++count )) # last statement in function returns false

right ++

count=0
count=$((count+1))