I have a bash script which has long (more than 80 cols) statements like these:
if [[ $BSP_TYPE == "essential" || $BSP_TYPE == "full" || $BSP_TYPE == "livecd" || $QSP_TYPE == "dummy" ]]
echo "The argument 'dummy' is always used with second argument. Please provide an appropriate second argument."
I deliberately picked the above statements which shows three different types of scenario -- Variable declaration, IF statement and a echo statement.
Now, I know I can shorten the length of the above by choosing a different variable or reformatting the sentence but that this is not the point because there can always be a scenario where you have used everything that is ideal but your line still goes beyond 80 cols.
So the question: What is the best way to get the above lines under 80 cols?
I usually use gedit or nano for writing scripts.