I have a shell script with this code:
var=`hg st -R \"$path\"` if [ -n \"$var\" ]; then echo $var fi
But the conditional code always ex
This trims multiple spaces of the front and end
whatever=${whatever%% *}
whatever=${whatever#* }