MIAOU-BASH is a collection of scripts and configurations designed to enhance your terminal experience. As the name suggests, it is built on Bash and is designed to work on most modern GNU/Linux systems.
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.

483 B

Bash Tips

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))
`