On 4/8/2017 1:59 PM, Richard Hipp wrote:
On 4/8/17, Thomas <tho...@dateiliste.com> wrote:
C:\fos>fossil settings crlf-glob *.obj
C:\fos>
C:\fos>fossil settings crlf-glob *
Usage: fossil settings ?PROPERTY? ?VALUE? ?-global?
C:\fos>fossil settings crlf-glob * -global
Usage: fossil settings ?PROPERTY? ?VALUE? ?-global?
C:\fos>fossil settings crlf-glob "*"
Usage: fossil settings ?PROPERTY? ?VALUE? ?-global?
C:\fos>fossil settings crlf-glob "*" -global
Usage: fossil settings ?PROPERTY? ?VALUE? ?-global?

Does anyone know how to unveil the secret of getting the mentioned
asterisk into the crlf-glob setting without consulting the web interface?
This seems to be a windows shell thing.  On unix, you would just put
the * inside single-quotes: '*' - but that appears not to work on
windows.  I don't know the solution.

A hint:  You can run

     fossil test-echo *

to see what the command-line gets expanded to by the shell.  I haven't
(yet) found a variation on this that does not expand the *.

Anybody else?


Try "^*":

C:...>fossil test-echo "^*"
g.nameOfExe = [C:\Programs\Bin\fossil.exe]
argv[0] = [fossil]
argv[1] = [test-echo]
argv[2] = [^*]

C:...>

The caret is supposed to be CMD.EXE's quote character analogous to /bin/sh's use of \, and I thought it worked anywhere and not just inside double quotes. But a bare ^* did not do what I expected at a CMD prompt.

The other trick for settings like crlf-glob is to use versionable settings for them. Then you get to edit a file rather than fighting with strange shell quoting rules. Just create the file .fossil-settings\crlf-glob in the root of your repository's workspace and put a single line in it containing the asterisk. Add the file and check it in and all should be well.


--
Ross Berteig                               r...@cheshireeng.com
Cheshire Engineering Corp.           http://www.CheshireEng.com/
+1 626 303 1602

_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to