Some shells don't have the COLUMNS defined in certain cases.
This makes fold error: fold: invalid number of columns: ‘’
A sane default would be appreciated. Either really big or a standard width 80.
Simply changing $COLUMNS -> ${COLUMNS:-80} would be an improvement.
Some shells don't have the COLUMNS defined in certain cases.
This makes fold error:
fold: invalid number of columns: ‘’A sane default would be appreciated. Either really big or a standard width 80.
Simply changing
$COLUMNS->${COLUMNS:-80}would be an improvement.