gas attempting to assemble non-existent file

Alan Modra amodra@bigpond.net.au
Tue Sep 12 07:49:00 GMT 2006


$ gas/as-new -o foo non-existent-file.s
Assembler messages:
Can't open non-existent-file.s for reading: No such file or directory
$ echo $?
0
$ ls -l foo
-rw-r--r-- 1 alan users 441 2006-09-12 15:39 foo

Seems to me we ought to return a non-zero exit status and delete the
output.  Am I missing something?

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list