- 1 year ago
How to pass a literal asterisk to svn propset on Windows command line and bat file
When using the Windows command line or a batch file to pass a literal asterisk (*
) to the svn propset
command, you need to escape the asterisk character to prevent it from being interpreted as a wildcard. Here's how you can do it:
Windows Command Line:
To pass a literal asterisk in the Windows command line, you need to enclose it in double quotes ("
). Here's an example:arduinosvn propset svn:ignore "myfile*" .
In this example, the literal asterisk is passed as part of the property value (
"myfile*"
) and the path (.
) to thesvn propset
command.Batch File:
In a batch file, you need to use a double percent sign (%%
) to escape the asterisk. Here's an example:batchsvn propset svn:ignore "myfile%%*" .
In this example, the literal asterisk is passed as part of the property value (
"myfile%%*"
) and the path (.
) to thesvn propset
command.
By enclosing the asterisk in double quotes or escaping it with double percent signs, you ensure that it is treated as a literal character and not interpreted as a wildcard by the svn propset
command.
Remember to adjust the rest of the command and its arguments according to your specific needs and use case.