[SHELL] Improve LINENO support