shell: fix regression of 40c819eda143285fe83b95a065dc667509332bbd

When printing warning or error messages, a line number is not
displayed.

    modified:   main.c