# This will only get the start of progname if it includes spaces;
# so we won't worry too hard about the exact format later.
AT_CHECK([LC_ALL=C cdecl99 --help], [0], [stdout])
-progname=`$AWK 'NR == 1 { print $2; }' stdout`dnl'
+progname=`$AWK 'NR == 1 { gsub(/[[\\\\]]/, "/", $2); print $2; }' stdout`dnl'
# every line is erroneous
AT_DATA([input],
AT_DATA([check.awk],
[[BEGIN { status=0; }
+{ gsub(/[\\]/, "/"); }
$1 == progname || $1 == (progname ":") { next; }
{ status=1; print "unprefixed message on line", NR ":", $0; }
END { exit(status); }