shell: Correct a bug when printing a table line.