shell: handle ping/pong
silence compiler warnings