shopt -s failglob;
ls -l /non-existent/*; echo A;
echo B
only prints "B" (and the "no-match" error).
http://www.gnu.org/software/bash/manual/bashref.html#Filename-Expansion
says that the command that caused the expansion failure does not get executed; but not that the rest of the line is ignored. How to limit the effect of the expansion failure to the actual command only?
This is under GNU bash, version 4.2.45(1)-release (i586-pc-linux-gnu) on Gentoo-Linux.