I'm using echo $(cal) and echo "$(cal)"in Linux and it gives me different results as in the picture. The double quotes should not interfere with $ in this case, so what gives the echo "$(cal)" that horizontal style comparing to echo $(cal).
This is the result:
echo "$(cal)"
Su Mo Tu We Th Fr Sa
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30
echo $(cal)
June 2019 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
