What is the difference between test expr VS [ expr ].
For example :
if test 5 -eq 6
echo "Wrong"
and
if [ 5 -eq 6 ]
echo "Wrong"
bot will give the same output as Wrong.
Now, what is the difference between these two? though they are producing the same result why we need two?
Any answer will be appreciated,