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

Re: Client relative url support infrastructure and merge implementation

From: Nathan Kidd <nathan-svn_at_spicycrypto.ca>
Date: 2007-12-18 23:25:29 CET

C. Michael Pilato wrote:
> Branko Čibej wrote:
>> Vincent Lefevre wrote:
>>> On 2007-12-18 15:41:17 +0100, Vincent Lefevre wrote:
>>>> vin:~> zsh -f
>>>> vin% echo ^ab
>>>> ^ab
>>>> vin% echo +ab
>>>> +ab
>>>> vin% echo =ab
>>>> /usr/sbin/ab
>>>> vin% echo %ab
>>>> %ab
>>> BTW, if the extendedglob option is used, '^' also has a special
>>> meaning under zsh. '+' and '%' seem to be safe. And as '%' is
>>> used as a job prefix, it should be safe and remain safe whatever
>>> the options.
>> Good reasoning. I don't suppose anyone wants a svn client in VMS? then
>> we're safe with %. :)
> I may not be following the right discussion, but won't %ab expand as a
> variable on windows? Or must you have both %'s (%ab%)?

For a regular variable both %'s are needed:

C:\>set ab=foo
C:\>echo %ab

FOR loop variables however seem impossible to escape, so one must be
careful to avoid using a sequence that matches a used variable.

C:\>for %a in (*) do @echo %ab

C:\>for %a in (*) do @echo %%ab

C:\>for %a in (*) do @echo ^%ab

C:\>for %a in (*) do @echo "%ab"

C:\>for %a in (*) do @echo ^%^ab

C:\>for %a in (*) do @echo ^%^%^ab

C:\>for %a in (*) do @echo ^^%ab

C:\>for %a in (*) do @echo ^%^^%ab

C:\>for %a in (*) do @echo "^%^^%ab"

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Dec 18 23:26:25 2007

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

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