On Sat, Nov 05, 2005 at 01:51:40PM -0500, Daniel Burrows wrote: > Package: darcs > Version: 1.0.3-2 > Severity: normal > > I wanted to replace all the includes of <assert.h> with includes of > <generic/util/eassert.h>. So, I did this: > > darcs replace '<assert.h>' '<generic/util/eassert.h>' --token-chars > '[<>/a-zA-Z\.]' > > darcs rewarded me with the following error message: > > darcs failed: '<assert.h>' is not a valid token!
In darcs 1.0.3 you must give the flags (--token-chars) before the arguments. darcs replace --token-chars '[<>/a-zA-Z\.]' '<assert.h>' '<generic/util/eassert.h>' should work. Yes, the error message is very unhelpful. In darcs 1.0.4 (still in release candidate state) flags and arguments can be mixed in any order. -- Tommy Pettersson <[EMAIL PROTECTED]> -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]