Minifying the following code
if [[ $(ls) = '' ]]
then
echo 'Empty folder.'
fi
generates this (invalid) bash script:
if [[ $(ls)= '' ]];then echo 'Empty folder.';fi
Bash complains about the equal sign following the closing parenthese directly with no intermediate whitespace.
bash: conditional binary operator expected
bash: syntax error near `'''
Minifying the following code
generates this (invalid) bash script:
Bash complains about the equal sign following the closing parenthese directly with no intermediate whitespace.