Subject: bin/2407: as creates output even if no input file
To: None <gnats-bugs@NetBSD.ORG>
From: Ignatios Souvatzis <>
List: netbsd-bugs
Date: 05/13/1996 02:56:58
>Number:         2407
>Category:       bin
>Synopsis:       as creates output even if no input file
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 14 07:20:08 1996
>Originator:     Ignatios Souvatzis
	Hackers 'R' Us
>Release:        1.1
System: NetBSD 1.1B NetBSD 1.1B (DRACO) #56: Mon May 13 02:35:50 MET DST 1996 amiga

	When the input file isn't there, as nevertheless creates a 32 byte 
	output file. This can lead to confusion, because in some circumstances
	(e.g. 060sp build process) the compilation process will happily
	continue until the linker will notice missing symbols.

	As a side effect, innocent existing output files will be overwritten
	even if the input files don't exist due to a typing error.

	rm bla.s
	ls -l bla.o
	as -o bla.o bla.s
	ls -l bla.o
	Fix not known.

	Workaround: always make clean first (and be sure your clean
	target will REALLY clean all) Don't try this at home if
	you have a slow machine. ;-)