You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Brent P. Newhall" <me...@other-space.com> on 2006/12/13 04:01:46 UTC

Odd scripting problem.

I wrote a shell script in an attempt to see what's changed in my  
repository in the past week.  I've had problems passing a date to  
svn, though, and have simplified the script down to this:

	#!/bin/ksh
	thetime="2006-12-01"
	svn log -v -r \'{$thetime}\':HEAD

This results in the following output:

	svn: Syntax error in revision argument ''{2006-12-01}':HEAD'

I get this error no matter what shell I try to use.  I've tried  
escaping the quotes and the curly brackets, and using doublequotes;  
all of them result in the same Syntax error.  I can echo out that  
"svn log" command, then copy-and-paste it on the command line and it  
will work perfectly.

Any idea what I'm doing wrong?

-- 
Brent P. Newhall
21st Century Renaissance Man
http://brent.other-space.com/



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Odd scripting problem.

Posted by si <ss...@gmail.com>.
> I get this error no matter what shell I try to use.  I've tried
> escaping the quotes and the curly brackets, and using doublequotes;
> all of them result in the same Syntax error.

Try leaving the quotes out...

svn log -v -r {2006-12-01}:HEAD

I do see where you're coming from, "svn help log" shows 'HEAD',
which I take it to mean it's literal, which you took literally ;-)

peace
si

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org