I want the $mydate
variable or the command Get-Date -Format yyyy-MM-dd
to expand in the following command line (note the curly braces required by the svn.exe
client:
$mydate = Get-Date -Format yyyy-MM-dd
svn log https://svn.apache.org/repos/asf/ -r {Get-Date -Format yyyy-MM-dd}
svn log https://svn.apache.org/repos/asf/ -r {$mydate}
In both cases I am getting the following error:
svn: E205000: Syntax error in revision argument '-encodedCommand'
Why does the variable becomes -encodedCommand
? Should I escape curly braces? How? Tick '`' does not work:
Error formatting a string: Input string was not in a correct format..
At line:1 char:1
+ svn log https://svn.apache.org/repos/asf/ -r `{$mydate`}
What am I doing wrong?