[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Odd scripting problem.

From: Brent P. Newhall <me_at_other-space.com>
Date: 2006-12-13 05:01:46 CET

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
Received on Wed Dec 13 05:02:33 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.