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

Re: [PATCH] Repository root relative support for the command-line client

From: Daniel Shahaf <d.s_at_daniel.shahaf.co.il>
Date: Tue, 29 Apr 2008 18:30:38 +0300 (IDT)

Karl Fogel wrote on Tue, 29 Apr 2008 at 11:10 -0400:
> Daniel Shahaf <d.s_at_daniel.shahaf.co.il> writes:
> > (who wishes he didn't have to quote ^ every time)
>
> Why is it that you have to quote ^ every time? Is it your shell?
>

Yes, see below.

> We raised this issue when the character was being chosen, and concluded
> that it would not need to be quoted. Were we wrong for certain shells?
> We knew about caret substitution, but I thought that only happened when
> the caret is either appended the end of the line [1], or when there are
> multiple carets [2], and that therefore it would not be a problem for
> our usage. Were we wrong?
>

Using zsh 4.3.6 with 'setopt extendedglob' enabled:

        0:% svn info | grep URL
        URL: https://svn.collab.net/repos/svn/trunk
        0:% /bin/echo *
        aclocal.m4 autogen.sh BUGS build build.conf build-outputs.mk CHANGES COMMITTERS config.cache config.log config.nice config.status configure configure.ac contrib COPYING doc gen-make.opts gen-make.py HACKING INSTALL libtool logmsg logmsg.orig Makefile Makefile.in notes packages patch README subversion tags tests.log tools TRANSLATING win-tests.py www
        0:% /bin/echo ^
        aclocal.m4 autogen.sh BUGS build build.conf build-outputs.mk CHANGES COMMITTERS config.cache config.log config.nice config.status configure configure.ac contrib COPYING doc gen-make.opts gen-make.py HACKING INSTALL libtool logmsg logmsg.orig Makefile Makefile.in notes packages patch README subversion tags tests.log tools TRANSLATING win-tests.py www
        0:% /bin/echo ^/
        build/ contrib/ doc/ notes/ packages/ subversion/ tools/ www/
        0:%

Using dash 0.5.4, or zsh with 'setopt extendedglob' disabled:

        0:% /bin/sh
        $ svn info | grep URL
        URL: https://svn.collab.net/repos/svn/trunk
        $ /bin/echo *
        BUGS CHANGES COMMITTERS COPYING HACKING INSTALL Makefile Makefile.in README TRANSLATING aclocal.m4 autogen.sh build build-outputs.mk build.conf config.cache config.log config.nice config.status configure configure.ac contrib doc gen-make.opts gen-make.py libtool logmsg logmsg.orig notes packages patch subversion tags tests.log tools win-tests.py www
        $ /bin/echo ^
        ^
        $ /bin/echo ^/
        ^/
        $

> -K
>
> [1] http://tomecat.com/jeffy/tttt/cshhistory.html
>
> [2] http://www.oreilly.com/catalog/9780596526788/toc.html,
> Chapter 18 "Working Faster by Typing Less"
> (subsection "Substituting Across Word Boundaries")
> -*- and -*-
> http://lifehacker.com/software/notag/ctrl%252Br-to-search-and-other-terminal-history-tricks-278888.php#c1899027
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-04-29 17:31:03 CEST

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.