Twitter http://twitter.com/dhsrocha/
Blog http://dhsrocha.github.io
Website http://dhsrocha.com.br

0 score

Source without circular reference

 $ [ ! "${LIB}" ] && ( readonly LIB; . "${ $( cd $( dirname $0 ) && pwd ) }/<path_to>/LIB.sh" )

Jan. 24, 2018, 4:30 p.m.dhsrocha

3 score

Ternary conditional clause

 $ [ test_statement ] && ( then_statement ) || ( else_statement );

Jan. 22, 2018, 5:27 p.m.dhsrocha

2 score

Get executed script's current working directory

 $ CWD=$(cd "$(dirname "$0")" && pwd)

Jan. 22, 2018, 4:55 p.m.dhsrocha