Re: bug report "svn propset"
From: Mantas Balnys <mantas.balnys_at_nomagic.com>
Date: Thu, 19 Feb 2009 10:15:34 +0200
Hello Paul
Thanks for your help. Anyway I think that such application behavior
Sincerely,
Mantas Balnys
-- MagicDraw - Architecture Made Simple! Paul Koning wrote: >>>>>> "Mantas" == Mantas Balnys <mantas.balnys_at_nomagic.com> writes: >>>>>> > > Mantas> OS: Fedora 8 SVN: 1.4.4 > > Mantas> Example: svn propset "propname" "-propvalue" file.txt svn: > Mantas> invalid option character: p > > Mantas> It seems that propvalue can't start with '-' > > Yes, it can. > > Unix switches (options) begin with "-", and modern apps allow options > to appear anywhere in the command line. So "-propvalue" is the switch > "-p" with value "ropvalue". > > There is also a standard Unix convention that says "there are no more > options in this command line". That is the way you deal with command > arguments that begin with "-". And Subversion supports this. You do > this by inserting "--" (two dashes) after the last option. > > For example: > > svn propset -q -- propname -propvalue file.txt > > Here -q is an option but -propvalue is a command argument. This will > do what you asked for. > > paul > > ------------------------------------------------------ http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1190703 To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].Received on 2009-02-19 17:44:54 CET |
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.