Files
openide/plugins/sh/core/testData/oldParser/conditionalAdvancedExpressions.sh
Mikhail Mazurkevich b3d360223c [intellij sh] Rename impl => core
GitOrigin-RevId: b0c3fe114c6df798a09d0f46e3a39112e775a0a7
2022-09-10 18:28:42 +00:00

36 lines
564 B
Bash

[ -z a ]
[ a ]
[ $a ]
[ $(a) = a ]
[ `echo a` ]
[ \${a} ]
[ a ]
[ a ]
[[ $(a) ]]
if [[ $str == *condition* ]]
then
echo "String "$str has the word \"condition\"
fi
if [ `whoami` != 'root' ]; then
echo "Executing the installer script"
fi
if [ $? -eq 0 ] ; then
echo "Machine is giving ping response"
fi
if [ ! -z $ip ]
then
echo "IP Address is empty"
fi
if [ $first -eq 0 ] && [ $second -eq 0 ]
then
echo "$first is lesser than $second"
fi
if [[ "$conf_branch" = r/*/* || "$conf_branch" != r/* && "$conf_branch" = */* ]]; then
echo "Test output"
fi