missing 'then' in term.sh