Quick Test Your Bash Shell

vumdao

馃殌 Vu Dao 馃殌

Posted on March 25, 2021

Quick Test Your Bash Shell

Challenge Yourself

See following bash code and answer what the output is without running it

https://github.com/vumdao/bash/blob/master/bash_test/wq.sh

#!/bin/bash
set -e

mutex_test() { return -23; }

mutex_test

echo $?

echo "Done"
Enter fullscreen mode Exit fullscreen mode

馃尃 Blog Github Web Linkedin Group Page Twitter 馃尃

馃挅 馃挭 馃檯 馃毄
vumdao
馃殌 Vu Dao 馃殌

Posted on March 25, 2021

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Quick Test Your Bash Shell
devops Quick Test Your Bash Shell

March 25, 2021