[3936] in Athena Bugs

home help back first fref pref prev next nref lref last post

vax 6.4R: patch

daemon@ATHENA.MIT.EDU (vanharen@ATHENA.MIT.EDU)
Wed Jan 10 11:24:56 1990

From: vanharen@ATHENA.MIT.EDU
To: bugs@ATHENA.MIT.EDU
Date: Wed, 10 Jan 90 11:24:34 EST
System name:		fries
Type and version:	CVAXSTAR 6.4R
Display type:		SM

What were you trying to do?
	using "patch -D" to apply a diff to a source file, using ifdef's
	to mark changes.

What's wrong:
	"patch -D" would not take  __STDC__  as the identifier to ifdef
	on, even when it was quoted...:

	fries /mit/olcdev/src/server+ % patch -D __STDC__ db.c /tmp/diff
	Argument to -D not an identifier.
	fries /mit/olcdev/src/server+ % patch -D "__STDC__" db.c /tmp/diff
	Argument to -D not an identifier.
	fries /mit/olcdev/src/server+ % patch -D '__STDC__' db.c /tmp/diff
	Argument to -D not an identifier.

What should have happened:
	it should let me use whatever I want...

home help back first fref pref prev next nref lref last post