Discussion:
crnl-setting bug
(too old to reply)
Wilson, Ronald
2011-04-07 13:37:38 UTC
Permalink
crnl-glob A comma-separated list of GLOB patterns for text files
in which it is ok to have CR+NL line endings.
Set to "*" to disable CR+NL checking.

I'm unable to set crnl-glob to * in windows, per the documentation. I'm using powershell in windows 7 and I've also tried the regular windows command shell. I even tried *.* just for grins.

PS C:\rev\src\trader\src> fossil settings
access-log
auto-captcha
auto-shun
autosync (local) 1
binary-glob
clearsign
crnl-glob
default-perms
diff-command
dont-push
editor
gdiff-command
gmerge-command
https-login
ignore-glob (local) *.suo,*.ncb,*/eur_usd*.*
http-port
localauth (local) 0
main-branch
manifest (local) on
max-upload
mtime-changes
pgp-command
proxy
repo-cksum
self-register
ssh-command
web-browser
PS C:\rev\src\trader\src> fossil setting crnl-glob *
Usage: c:\rev\bin\fossil.exe setting ?PROPERTY? ?VALUE?
PS C:\rev\src\trader\src> fossil setting crnl-glob "*"
Usage: c:\rev\bin\fossil.exe setting ?PROPERTY? ?VALUE?
PS C:\rev\src\trader\src> fossil setting crnl-glob *
Usage: c:\rev\bin\fossil.exe setting ?PROPERTY? ?VALUE?
PS C:\rev\src\trader\src> fossil setting crnl-glob '*'
Usage: c:\rev\bin\fossil.exe setting ?PROPERTY? ?VALUE?
PS C:\rev\src\fossil> fossil setting crnl-glob *.*
Usage: c:\rev\bin\fossil.exe setting ?PROPERTY? ?VALUE?
PS C:\rev\src\trader\src> fossil ver
This is fossil version [bc427ad727] 2011-04-06 14:31:00 UTC

Ron Wilson, Engineering Project Lead
(o) 434.455.6453, (m) 434.851.1612, www.harris.com
Konstantin Khomoutov
2011-04-07 13:49:42 UTC
Permalink
On Thu, 7 Apr 2011 13:37:38 +0000
"Wilson, Ronald" <***@harris.com> wrote:

> crnl-glob A comma-separated list of GLOB patterns for text
> files in which it is ok to have CR+NL line endings.
> Set to "*" to disable CR+NL checking.
>
> I'm unable to set crnl-glob to * in windows, per the documentation.
> I'm using powershell in windows 7 and I've also tried the regular
> windows command shell. I even tried *.* just for grins.
>
> PS C:\rev\src\trader\src> fossil settings
[...]
> crnl-glob
[...]
> PS C:\rev\src\trader\src> fossil setting crnl-glob *
> Usage: c:\rev\bin\fossil.exe setting ?PROPERTY? ?VALUE?
> PS C:\rev\src\trader\src> fossil setting crnl-glob "*"
> Usage: c:\rev\bin\fossil.exe setting ?PROPERTY? ?VALUE?
> PS C:\rev\src\trader\src> fossil setting crnl-glob *
> Usage: c:\rev\bin\fossil.exe setting ?PROPERTY? ?VALUE?
> PS C:\rev\src\trader\src> fossil setting crnl-glob '*'
> Usage: c:\rev\bin\fossil.exe setting ?PROPERTY? ?VALUE?
> PS C:\rev\src\fossil> fossil setting crnl-glob *.*
> Usage: c:\rev\bin\fossil.exe setting ?PROPERTY? ?VALUE?
> PS C:\rev\src\trader\src> fossil ver
> This is fossil version [bc427ad727] 2011-04-06 14:31:00 UTC

What happens if you do this in plain cmd.exe and not in powershell?
Richard Hipp
2011-04-07 14:04:22 UTC
Permalink
On Thu, Apr 7, 2011 at 9:37 AM, Wilson, Ronald <***@harris.com> wrote:

> crnl-glob A comma-separated list of GLOB patterns for text
> files
>
> in which it is ok to have CR+NL line endings.
>
> Set to "*" to disable CR+NL checking.
>
>
>
> I’m unable to set crnl-glob to * in windows, per the documentation. I’m
> using powershell in windows 7 and I’ve also tried the regular windows
> command shell. I even tried *.* just for grins.
>

Apparently, there is no way in the DOS shell to pass * in as a parameter to
a program.

<aside> For someone accustomed to working in a luxurious unix environment,
trying to get around with a windows shell is a bit like trading in a new BMW
or Lexus for a 15-year-old Yugo or Lada. It is a profoundly frustrating
experience that tempts one into throwing heavy objects at the screen. No
wonder that people "raised" on windows tend to take a dim view of
command-line interfaces. </aside>

Since the crnl-glob setting will accept a comma-separated list of glob
patterns, perhaps you can work around this problem (read: windows bug) as
follows:

fossil setting crnl-glob *,x



>
>
> PS C:\rev\src\trader\src> fossil settings
>
> access-log
>
> auto-captcha
>
> auto-shun
>
> autosync (local) 1
>
> binary-glob
>
> clearsign
>
> crnl-glob
>
> default-perms
>
> diff-command
>
> dont-push
>
> editor
>
> gdiff-command
>
> gmerge-command
>
> https-login
>
> ignore-glob (local) *.suo,*.ncb,*/eur_usd*.*
>
> http-port
>
> localauth (local) 0
>
> main-branch
>
> manifest (local) on
>
> max-upload
>
> mtime-changes
>
> pgp-command
>
> proxy
>
> repo-cksum
>
> self-register
>
> ssh-command
>
> web-browser
>
> PS C:\rev\src\trader\src> fossil setting crnl-glob *
>
> Usage: c:\rev\bin\fossil.exe setting ?PROPERTY? ?VALUE?
>
> PS C:\rev\src\trader\src> fossil setting crnl-glob "*"
>
> Usage: c:\rev\bin\fossil.exe setting ?PROPERTY? ?VALUE?
>
> PS C:\rev\src\trader\src> fossil setting crnl-glob *
>
> Usage: c:\rev\bin\fossil.exe setting ?PROPERTY? ?VALUE?
>
> PS C:\rev\src\trader\src> fossil setting crnl-glob '*'
>
> Usage: c:\rev\bin\fossil.exe setting ?PROPERTY? ?VALUE?
>
> PS C:\rev\src\fossil> fossil setting crnl-glob *.*
>
> Usage: c:\rev\bin\fossil.exe setting ?PROPERTY? ?VALUE?
>
> PS C:\rev\src\trader\src> fossil ver
>
> This is fossil version [bc427ad727] 2011-04-06 14:31:00 UTC
>
>
>
> Ron Wilson, Engineering Project Lead
>
> (o) 434.455.6453, (m) 434.851.1612, www.harris.com
>
>
>
> _______________________________________________
> fossil-users mailing list
> fossil-***@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
>


--
D. Richard Hipp
***@sqlite.org
Bill Burdick
2011-04-07 14:46:16 UTC
Permalink
You can use fossil ui to set it.

Bill

On Thu, Apr 7, 2011 at 9:04 AM, Richard Hipp <***@sqlite.org> wrote:

>
>
> On Thu, Apr 7, 2011 at 9:37 AM, Wilson, Ronald <***@harris.com>wrote:
>
>> crnl-glob A comma-separated list of GLOB patterns for text
>> files
>>
>> in which it is ok to have CR+NL line endings.
>>
>> Set to "*" to disable CR+NL checking.
>>
>>
>>
>> I’m unable to set crnl-glob to * in windows, per the documentation. I’m
>> using powershell in windows 7 and I’ve also tried the regular windows
>> command shell. I even tried *.* just for grins.
>>
>
> Apparently, there is no way in the DOS shell to pass * in as a parameter to
> a program.
>
> <aside> For someone accustomed to working in a luxurious unix environment,
> trying to get around with a windows shell is a bit like trading in a new BMW
> or Lexus for a 15-year-old Yugo or Lada. It is a profoundly frustrating
> experience that tempts one into throwing heavy objects at the screen. No
> wonder that people "raised" on windows tend to take a dim view of
> command-line interfaces. </aside>
>
> Since the crnl-glob setting will accept a comma-separated list of glob
> patterns, perhaps you can work around this problem (read: windows bug) as
> follows:
>
> fossil setting crnl-glob *,x
>
>
>
>>
>>
>> PS C:\rev\src\trader\src> fossil settings
>>
>> access-log
>>
>> auto-captcha
>>
>> auto-shun
>>
>> autosync (local) 1
>>
>> binary-glob
>>
>> clearsign
>>
>> crnl-glob
>>
>> default-perms
>>
>> diff-command
>>
>> dont-push
>>
>> editor
>>
>> gdiff-command
>>
>> gmerge-command
>>
>> https-login
>>
>> ignore-glob (local) *.suo,*.ncb,*/eur_usd*.*
>>
>> http-port
>>
>> localauth (local) 0
>>
>> main-branch
>>
>> manifest (local) on
>>
>> max-upload
>>
>> mtime-changes
>>
>> pgp-command
>>
>> proxy
>>
>> repo-cksum
>>
>> self-register
>>
>> ssh-command
>>
>> web-browser
>>
>> PS C:\rev\src\trader\src> fossil setting crnl-glob *
>>
>> Usage: c:\rev\bin\fossil.exe setting ?PROPERTY? ?VALUE?
>>
>> PS C:\rev\src\trader\src> fossil setting crnl-glob "*"
>>
>> Usage: c:\rev\bin\fossil.exe setting ?PROPERTY? ?VALUE?
>>
>> PS C:\rev\src\trader\src> fossil setting crnl-glob *
>>
>> Usage: c:\rev\bin\fossil.exe setting ?PROPERTY? ?VALUE?
>>
>> PS C:\rev\src\trader\src> fossil setting crnl-glob '*'
>>
>> Usage: c:\rev\bin\fossil.exe setting ?PROPERTY? ?VALUE?
>>
>> PS C:\rev\src\fossil> fossil setting crnl-glob *.*
>>
>> Usage: c:\rev\bin\fossil.exe setting ?PROPERTY? ?VALUE?
>>
>> PS C:\rev\src\trader\src> fossil ver
>>
>> This is fossil version [bc427ad727] 2011-04-06 14:31:00 UTC
>>
>>
>>
>> Ron Wilson, Engineering Project Lead
>>
>> (o) 434.455.6453, (m) 434.851.1612, www.harris.com
>>
>>
>>
>> _______________________________________________
>> fossil-users mailing list
>> fossil-***@lists.fossil-scm.org
>> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>>
>>
>
>
> --
> D. Richard Hipp
> ***@sqlite.org
>
> _______________________________________________
> fossil-users mailing list
> fossil-***@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
>
Richard Hipp
2011-04-07 14:51:37 UTC
Permalink
On Thu, Apr 7, 2011 at 10:46 AM, Bill Burdick <***@gmail.com>wrote:

> You can use fossil ui to set it.


Excellent suggestion, Bill. That is my new preferred solution. Please
ignore my prior hack.


>
> Bill
>
>
> On Thu, Apr 7, 2011 at 9:04 AM, Richard Hipp <***@sqlite.org> wrote:
>
>>
>>
>> On Thu, Apr 7, 2011 at 9:37 AM, Wilson, Ronald <***@harris.com>wrote:
>>
>>> crnl-glob A comma-separated list of GLOB patterns for text
>>> files
>>>
>>> in which it is ok to have CR+NL line endings.
>>>
>>> Set to "*" to disable CR+NL checking.
>>>
>>>
>>>
>>> I’m unable to set crnl-glob to * in windows, per the documentation. I’m
>>> using powershell in windows 7 and I’ve also tried the regular windows
>>> command shell. I even tried *.* just for grins.
>>>
>>
>> Apparently, there is no way in the DOS shell to pass * in as a parameter
>> to a program.
>>
>> <aside> For someone accustomed to working in a luxurious unix environment,
>> trying to get around with a windows shell is a bit like trading in a new BMW
>> or Lexus for a 15-year-old Yugo or Lada. It is a profoundly frustrating
>> experience that tempts one into throwing heavy objects at the screen. No
>> wonder that people "raised" on windows tend to take a dim view of
>> command-line interfaces. </aside>
>>
>> Since the crnl-glob setting will accept a comma-separated list of glob
>> patterns, perhaps you can work around this problem (read: windows bug) as
>> follows:
>>
>> fossil setting crnl-glob *,x
>>
>>
>>
>>>
>>>
>>> PS C:\rev\src\trader\src> fossil settings
>>>
>>> access-log
>>>
>>> auto-captcha
>>>
>>> auto-shun
>>>
>>> autosync (local) 1
>>>
>>> binary-glob
>>>
>>> clearsign
>>>
>>> crnl-glob
>>>
>>> default-perms
>>>
>>> diff-command
>>>
>>> dont-push
>>>
>>> editor
>>>
>>> gdiff-command
>>>
>>> gmerge-command
>>>
>>> https-login
>>>
>>> ignore-glob (local) *.suo,*.ncb,*/eur_usd*.*
>>>
>>> http-port
>>>
>>> localauth (local) 0
>>>
>>> main-branch
>>>
>>> manifest (local) on
>>>
>>> max-upload
>>>
>>> mtime-changes
>>>
>>> pgp-command
>>>
>>> proxy
>>>
>>> repo-cksum
>>>
>>> self-register
>>>
>>> ssh-command
>>>
>>> web-browser
>>>
>>> PS C:\rev\src\trader\src> fossil setting crnl-glob *
>>>
>>> Usage: c:\rev\bin\fossil.exe setting ?PROPERTY? ?VALUE?
>>>
>>> PS C:\rev\src\trader\src> fossil setting crnl-glob "*"
>>>
>>> Usage: c:\rev\bin\fossil.exe setting ?PROPERTY? ?VALUE?
>>>
>>> PS C:\rev\src\trader\src> fossil setting crnl-glob *
>>>
>>> Usage: c:\rev\bin\fossil.exe setting ?PROPERTY? ?VALUE?
>>>
>>> PS C:\rev\src\trader\src> fossil setting crnl-glob '*'
>>>
>>> Usage: c:\rev\bin\fossil.exe setting ?PROPERTY? ?VALUE?
>>>
>>> PS C:\rev\src\fossil> fossil setting crnl-glob *.*
>>>
>>> Usage: c:\rev\bin\fossil.exe setting ?PROPERTY? ?VALUE?
>>>
>>> PS C:\rev\src\trader\src> fossil ver
>>>
>>> This is fossil version [bc427ad727] 2011-04-06 14:31:00 UTC
>>>
>>>
>>>
>>> Ron Wilson, Engineering Project Lead
>>>
>>> (o) 434.455.6453, (m) 434.851.1612, www.harris.com
>>>
>>>
>>>
>>> _______________________________________________
>>> fossil-users mailing list
>>> fossil-***@lists.fossil-scm.org
>>> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>>>
>>>
>>
>>
>> --
>> D. Richard Hipp
>> ***@sqlite.org
>>
>> _______________________________________________
>> fossil-users mailing list
>> fossil-***@lists.fossil-scm.org
>> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>>
>>
>


--
D. Richard Hipp
***@sqlite.org
Ron Wilson
2011-04-07 15:11:03 UTC
Permalink
On Thu, Apr 7, 2011 at 10:51 AM, Richard Hipp <***@sqlite.org> wrote:
> On Thu, Apr 7, 2011 at 10:46 AM, Bill Burdick <***@gmail.com>
> wrote:
>>
>> You can use fossil ui to set it.
>
> Excellent suggestion, Bill.  That is my new preferred solution.  Please
> ignore my prior hack.

Nevertheless, your hack is both clever and humorous. (FWIW, my first
thought was doing it through "fossil ui" even though I usually prefer
the command line.)
s***@gmail.com
2011-04-07 15:58:44 UTC
Permalink
I prefer an automated approach. (assuming the batch file is simpler
than sending data to the ui)
The fossil settings work for me on XPsp3.

C:\fossil>cmd
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\fossil>fossil setting crnl-glob "*"

C:\fossil>

-Steve

On Thu, Apr 7, 2011 at 10:46 AM, Bill Burdick <***@gmail.com> wrote:
> You can use fossil ui to set it.
> Bill
>
> On Thu, Apr 7, 2011 at 9:04 AM, Richard Hipp <***@sqlite.org> wrote:
>>
>>
>> On Thu, Apr 7, 2011 at 9:37 AM, Wilson, Ronald <***@harris.com>
>> wrote:
>>>
>>>    crnl-glob        A comma-separated list of GLOB patterns for text
>>> files
>>>
>>>                     in which it is ok to have CR+NL line endings.
>>>
>>>                     Set to "*" to disable CR+NL checking.
>>>
>>>
>>>
>>> I’m unable to set crnl-glob to * in windows, per the documentation.  I’m
>>> using powershell in windows 7 and I’ve also tried the regular windows
>>> command shell.  I even tried *.* just for grins.
>>
>> Apparently, there is no way in the DOS shell to pass * in as a parameter
>> to a program.
>>
>> <aside> For someone accustomed to working in a luxurious unix environment,
>> trying to get around with a windows shell is a bit like trading in a new BMW
>> or Lexus for a 15-year-old Yugo or Lada.  It is a profoundly frustrating
>> experience that tempts one into throwing heavy objects at the screen.  No
>> wonder that people "raised" on windows tend to take a dim view of
>> command-line interfaces. </aside>
>>
>> Since the crnl-glob setting will accept a comma-separated list of glob
>> patterns, perhaps you can work around this problem (read: windows bug) as
>> follows:
>>
>>     fossil setting crnl-glob *,x
>>
>>
>>>
>>>
>>>
>>> PS C:\rev\src\trader\src> fossil settings
>>>
>>> access-log
>>>
>>> auto-captcha
>>>
>>> auto-shun
>>>
>>> autosync             (local)  1
>>>
>>> binary-glob
>>>
>>> clearsign
>>>
>>> crnl-glob
>>>
>>> default-perms
>>>
>>> diff-command
>>>
>>> dont-push
>>>
>>> editor
>>>
>>> gdiff-command
>>>
>>> gmerge-command
>>>
>>> https-login
>>>
>>> ignore-glob          (local)  *.suo,*.ncb,*/eur_usd*.*
>>>
>>> http-port
>>>
>>> localauth            (local)  0
>>>
>>> main-branch
>>>
>>> manifest             (local)  on
>>>
>>> max-upload
>>>
>>> mtime-changes
>>>
>>> pgp-command
>>>
>>> proxy
>>>
>>> repo-cksum
>>>
>>> self-register
>>>
>>> ssh-command
>>>
>>> web-browser
>>>
>>> PS C:\rev\src\trader\src> fossil setting crnl-glob *
>>>
>>> Usage: c:\rev\bin\fossil.exe setting ?PROPERTY? ?VALUE?
>>>
>>> PS C:\rev\src\trader\src> fossil setting crnl-glob "*"
>>>
>>> Usage: c:\rev\bin\fossil.exe setting ?PROPERTY? ?VALUE?
>>>
>>> PS C:\rev\src\trader\src> fossil setting crnl-glob *
>>>
>>> Usage: c:\rev\bin\fossil.exe setting ?PROPERTY? ?VALUE?
>>>
>>> PS C:\rev\src\trader\src> fossil setting crnl-glob '*'
>>>
>>> Usage: c:\rev\bin\fossil.exe setting ?PROPERTY? ?VALUE?
>>>
>>> PS C:\rev\src\fossil> fossil setting crnl-glob *.*
>>>
>>> Usage: c:\rev\bin\fossil.exe setting ?PROPERTY? ?VALUE?
>>>
>>> PS C:\rev\src\trader\src> fossil ver
>>>
>>> This is fossil version [bc427ad727] 2011-04-06 14:31:00 UTC
>>>
>>>
>>>
>>> Ron Wilson, Engineering Project Lead
>>>
>>> (o) 434.455.6453, (m) 434.851.1612, www.harris.com
>>>
>>>
>>>
>>> _______________________________________________
>>> fossil-users mailing list
>>> fossil-***@lists.fossil-scm.org
>>> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>>>
>>
>>
>>
>> --
>> D. Richard Hipp
>> ***@sqlite.org
>>
>> _______________________________________________
>> fossil-users mailing list
>> fossil-***@lists.fossil-scm.org
>> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>>
>
>
> _______________________________________________
> fossil-users mailing list
> fossil-***@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
>
Bill Burdick
2011-04-07 16:12:42 UTC
Permalink
It seems that Vista and Windows 7 don't support sending "*" as an argument.
For XP, apparently it works.


Bill


On Thu, Apr 7, 2011 at 10:58 AM, <***@gmail.com> wrote:

> I prefer an automated approach. (assuming the batch file is simpler
> than sending data to the ui)
> The fossil settings work for me on XPsp3.
>
> C:\fossil>cmd
> Microsoft Windows XP [Version 5.1.2600]
> (C) Copyright 1985-2001 Microsoft Corp.
>
> C:\fossil>fossil setting crnl-glob "*"
>
> C:\fossil>
>
> -Steve
>
> On Thu, Apr 7, 2011 at 10:46 AM, Bill Burdick <***@gmail.com>
> wrote:
> > You can use fossil ui to set it.
> > Bill
> >
> > On Thu, Apr 7, 2011 at 9:04 AM, Richard Hipp <***@sqlite.org> wrote:
> >>
> >>
> >> On Thu, Apr 7, 2011 at 9:37 AM, Wilson, Ronald <***@harris.com>
> >> wrote:
> >>>
> >>> crnl-glob A comma-separated list of GLOB patterns for text
> >>> files
> >>>
> >>> in which it is ok to have CR+NL line endings.
> >>>
> >>> Set to "*" to disable CR+NL checking.
> >>>
> >>>
> >>>
> >>> I’m unable to set crnl-glob to * in windows, per the documentation.
> I’m
> >>> using powershell in windows 7 and I’ve also tried the regular windows
> >>> command shell. I even tried *.* just for grins.
> >>
> >> Apparently, there is no way in the DOS shell to pass * in as a parameter
> >> to a program.
> >>
> >> <aside> For someone accustomed to working in a luxurious unix
> environment,
> >> trying to get around with a windows shell is a bit like trading in a new
> BMW
> >> or Lexus for a 15-year-old Yugo or Lada. It is a profoundly frustrating
> >> experience that tempts one into throwing heavy objects at the screen.
> No
> >> wonder that people "raised" on windows tend to take a dim view of
> >> command-line interfaces. </aside>
> >>
> >> Since the crnl-glob setting will accept a comma-separated list of glob
> >> patterns, perhaps you can work around this problem (read: windows bug)
> as
> >> follows:
> >>
> >> fossil setting crnl-glob *,x
> >>
> >>
> >>>
> >>>
> >>>
> >>> PS C:\rev\src\trader\src> fossil settings
> >>>
> >>> access-log
> >>>
> >>> auto-captcha
> >>>
> >>> auto-shun
> >>>
> >>> autosync (local) 1
> >>>
> >>> binary-glob
> >>>
> >>> clearsign
> >>>
> >>> crnl-glob
> >>>
> >>> default-perms
> >>>
> >>> diff-command
> >>>
> >>> dont-push
> >>>
> >>> editor
> >>>
> >>> gdiff-command
> >>>
> >>> gmerge-command
> >>>
> >>> https-login
> >>>
> >>> ignore-glob (local) *.suo,*.ncb,*/eur_usd*.*
> >>>
> >>> http-port
> >>>
> >>> localauth (local) 0
> >>>
> >>> main-branch
> >>>
> >>> manifest (local) on
> >>>
> >>> max-upload
> >>>
> >>> mtime-changes
> >>>
> >>> pgp-command
> >>>
> >>> proxy
> >>>
> >>> repo-cksum
> >>>
> >>> self-register
> >>>
> >>> ssh-command
> >>>
> >>> web-browser
> >>>
> >>> PS C:\rev\src\trader\src> fossil setting crnl-glob *
> >>>
> >>> Usage: c:\rev\bin\fossil.exe setting ?PROPERTY? ?VALUE?
> >>>
> >>> PS C:\rev\src\trader\src> fossil setting crnl-glob "*"
> >>>
> >>> Usage: c:\rev\bin\fossil.exe setting ?PROPERTY? ?VALUE?
> >>>
> >>> PS C:\rev\src\trader\src> fossil setting crnl-glob *
> >>>
> >>> Usage: c:\rev\bin\fossil.exe setting ?PROPERTY? ?VALUE?
> >>>
> >>> PS C:\rev\src\trader\src> fossil setting crnl-glob '*'
> >>>
> >>> Usage: c:\rev\bin\fossil.exe setting ?PROPERTY? ?VALUE?
> >>>
> >>> PS C:\rev\src\fossil> fossil setting crnl-glob *.*
> >>>
> >>> Usage: c:\rev\bin\fossil.exe setting ?PROPERTY? ?VALUE?
> >>>
> >>> PS C:\rev\src\trader\src> fossil ver
> >>>
> >>> This is fossil version [bc427ad727] 2011-04-06 14:31:00 UTC
> >>>
> >>>
> >>>
> >>> Ron Wilson, Engineering Project Lead
> >>>
> >>> (o) 434.455.6453, (m) 434.851.1612, www.harris.com
> >>>
> >>>
> >>>
> >>> _______________________________________________
> >>> fossil-users mailing list
> >>> fossil-***@lists.fossil-scm.org
> >>> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
> >>>
> >>
> >>
> >>
> >> --
> >> D. Richard Hipp
> >> ***@sqlite.org
> >>
> >> _______________________________________________
> >> fossil-users mailing list
> >> fossil-***@lists.fossil-scm.org
> >> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
> >>
> >
> >
> > _______________________________________________
> > fossil-users mailing list
> > fossil-***@lists.fossil-scm.org
> > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
> >
> >
> _______________________________________________
> fossil-users mailing list
> fossil-***@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
s***@gmail.com
2011-04-07 16:18:11 UTC
Permalink
Whoa! How do you...

c:\temp>del *.*

Some Dot.Net framework class is required?
Bill Burdick
2011-04-07 16:25:19 UTC
Permalink
Apparently the Vista and Windows 7 shell does the file matching and sends
the matched files to the command, rather than sending "*.*' to the command
and having the command do the matching, somewhat like how shells work in
UNIX.


Bill


On Thu, Apr 7, 2011 at 11:18 AM, <***@gmail.com> wrote:

> Whoa! How do you...
>
> c:\temp>del *.*
>
> Some Dot.Net framework class is required?
>
Konstantin Khomoutov
2011-04-07 15:24:54 UTC
Permalink
On Thu, 7 Apr 2011 10:04:22 -0400
Richard Hipp <***@sqlite.org> wrote:

> On Thu, Apr 7, 2011 at 9:37 AM, Wilson, Ronald <***@harris.com>
> wrote:
>
> > crnl-glob A comma-separated list of GLOB patterns for
> > text files
> >
> > in which it is ok to have CR+NL line endings.
> >
> > Set to "*" to disable CR+NL checking.
> >
> >
> >
> > I’m unable to set crnl-glob to * in windows, per the
> > documentation. I’m using powershell in windows 7 and I’ve also
> > tried the regular windows command shell. I even tried *.* just for
> > grins.
> >
>
> Apparently, there is no way in the DOS shell to pass * in as a
> parameter to a program.
I think you're wrong.
To demonstrate (Windows XP, cmd.exe):

C:\>fossil set crnl-glob ""

C:\>fossil settings|grep crnl
crnl-glob (local)

C:\>fossil set crnl-glob "*"

C:\>fossil settings|grep crnl
crnl-glob (local) *

[...]

In fact, cmd.exe has the opposite problem: while on Unix it expands
bare * in certain places, trying to replace it with a matching list of
files, on Windows the shell passes the asterisk to the program it calls
"as is" and the program is then supposed to do whatever it wants with
that asterisk.

I mean that in a POSIX shell, if we have

$ ls
aaa bbb ccc

then

$ rm *

will result in the call "rm aaa bbb ccc", while on Windows it will
result in the call "rm *".

On the other hand, the original poster seems to be using PowerShell,
not cmd.exe; I'm personally not familiar with it (our shop is still
using Windows XP/Windows 2003 on which PowerShell is painfully slow to
the level of being unusable) and it might well have different semantics.
Wilson, Ronald
2011-04-07 15:44:12 UTC
Permalink
PS C:\Users\rwilso20> cmd
Microsoft Windows [Version 6.0.6002]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.

C:\Users\rwilso20>cd \rev\src\fossil

C:\rev\src\fossil>fossil setting crnl-glob "*"
Usage: C:\rev\src\fossil\fossil.exe setting ?PROPERTY? ?VALUE?

RW

Ron Wilson, Engineering Project Lead
(o) 434.455.6453, (m) 434.851.1612, www.harris.com

HARRIS CORPORATION | RF Communications Division assuredcommunications™


> -----Original Message-----
> From: fossil-users-***@lists.fossil-scm.org [mailto:fossil-users-
> ***@lists.fossil-scm.org] On Behalf Of Konstantin Khomoutov
> Sent: Thursday, April 07, 2011 11:25 AM
> To: fossil-***@lists.fossil-scm.org
> Subject: Re: [fossil-users] crnl-setting bug
>
> On Thu, 7 Apr 2011 10:04:22 -0400
> Richard Hipp <***@sqlite.org> wrote:
>
> > On Thu, Apr 7, 2011 at 9:37 AM, Wilson, Ronald <***@harris.com>
> > wrote:
> >
> > > crnl-glob A comma-separated list of GLOB patterns for
> > > text files
> > >
> > > in which it is ok to have CR+NL line endings.
> > >
> > > Set to "*" to disable CR+NL checking.
> > >
> > >
> > >
> > > I’m unable to set crnl-glob to * in windows, per the
> > > documentation. I’m using powershell in windows 7 and I’ve also
> > > tried the regular windows command shell. I even tried *.* just for
> > > grins.
> > >
> >
> > Apparently, there is no way in the DOS shell to pass * in as a
> > parameter to a program.
> I think you're wrong.
> To demonstrate (Windows XP, cmd.exe):
>
> C:\>fossil set crnl-glob ""
>
> C:\>fossil settings|grep crnl
> crnl-glob (local)
>
> C:\>fossil set crnl-glob "*"
>
> C:\>fossil settings|grep crnl
> crnl-glob (local) *
>
> [...]
>
> In fact, cmd.exe has the opposite problem: while on Unix it expands
> bare * in certain places, trying to replace it with a matching list of
> files, on Windows the shell passes the asterisk to the program it calls
> "as is" and the program is then supposed to do whatever it wants with
> that asterisk.
>
> I mean that in a POSIX shell, if we have
>
> $ ls
> aaa bbb ccc
>
> then
>
> $ rm *
>
> will result in the call "rm aaa bbb ccc", while on Windows it will
> result in the call "rm *".
>
> On the other hand, the original poster seems to be using PowerShell,
> not cmd.exe; I'm personally not familiar with it (our shop is still
> using Windows XP/Windows 2003 on which PowerShell is painfully slow to
> the level of being unusable) and it might well have different semantics.
> _______________________________________________
> fossil-users mailing list
> fossil-***@lists.fossil-scm.org
> http://lists.fossil-scm
Konstantin Khomoutov
2011-04-07 16:02:39 UTC
Permalink
On Thu, 7 Apr 2011 15:44:12 +0000
"Wilson, Ronald" <***@harris.com> wrote:

> PS C:\Users\rwilso20> cmd
> Microsoft Windows [Version 6.0.6002]
> Copyright (c) 2006 Microsoft Corporation. All rights reserved.
>
> C:\Users\rwilso20>cd \rev\src\fossil
>
> C:\rev\src\fossil>fossil setting crnl-glob "*"
> Usage: C:\rev\src\fossil\fossil.exe setting ?PROPERTY? ?VALUE?

Then this might really be a bug as I'm using an older version
(currently available at the downloads page):
This is fossil version [84e755e213] 2011-03-16 11:19:14 UTC

I failed to build the current trunk so can't really tell if it fails
for me or not. Will try to fix the build system and proceed.
Konstantin Khomoutov
2011-04-07 16:53:55 UTC
Permalink
On Thu, 7 Apr 2011 15:44:12 +0000
"Wilson, Ronald" <***@harris.com> wrote:

> PS C:\Users\rwilso20> cmd
> Microsoft Windows [Version 6.0.6002]
> Copyright (c) 2006 Microsoft Corporation. All rights reserved.
>
> C:\Users\rwilso20>cd \rev\src\fossil
>
> C:\rev\src\fossil>fossil setting crnl-glob "*"
> Usage: C:\rev\src\fossil\fossil.exe setting ?PROPERTY? ?VALUE?

I asked a fellow user of Windows 7 to test the version available from
the downloads page (which I used under Windows XP) and he confirms the
problem you're seeing.
Scott Robison
2011-04-07 19:16:15 UTC
Permalink
I believe the glob-style wildcard pattern matching is being performed
by mingw during program startup before handing control over to main
(because cmd.exe does not do wildcard expansion itself in either
Windows 7 or XP).

SDR

On Thu, Apr 7, 2011 at 10:53 AM, Konstantin Khomoutov
<***@users.sourceforge.net> wrote:
> On Thu, 7 Apr 2011 15:44:12 +0000
> "Wilson, Ronald" <***@harris.com> wrote:
>
>> PS C:\Users\rwilso20> cmd
>> Microsoft Windows [Version 6.0.6002]
>> Copyright (c) 2006 Microsoft Corporation.  All rights reserved.
>>
>> C:\Users\rwilso20>cd \rev\src\fossil
>>
>> C:\rev\src\fossil>fossil setting crnl-glob "*"
>> Usage: C:\rev\src\fossil\fossil.exe setting ?PROPERTY? ?VALUE?
>
> I asked a fellow user of Windows 7 to test the version available from
> the downloads page (which I used under Windows XP) and he confirms the
> problem you're seeing.
> _______________________________________________
> fossil-users mailing list
> fossil-***@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
Scott Robison
2011-04-07 19:23:09 UTC
Permalink
On Thu, Apr 7, 2011 at 1:16 PM, Scott Robison <***@scottrobison.us> wrote:
> I believe the glob-style wildcard pattern matching is being performed
> by mingw during program startup before handing control over to main
> (because cmd.exe does not do wildcard expansion itself in either
> Windows 7 or XP).

Bah, stupid gmail (or stupid user of gmail). Anyway, if you type

fossil setting crnl-glob *

at a command prompt in an empty directory (no expansion opportunity
for *) you get a different result than if you type that command in a
non-empty directory (where * is expanded into the list of entries in
the current directory). The mingw startup code is emulating the
behavior one expects from a posix environment.

SDR
Ron Wilson
2011-04-07 19:24:45 UTC
Permalink
On Thu, Apr 7, 2011 at 3:16 PM, Scott Robison <***@scottrobison.us> wrote:
> I believe the glob-style wildcard pattern matching is being performed
> by mingw during program startup before handing control over to main
> (because cmd.exe does not do wildcard expansion itself in either
> Windows 7 or XP).

And, I would guess that cmd.exe is stripping off the "s.

So, maybe:

fossil setting crnl-glob "'*'"

would work. After cmd.exe strips off the "s, 's would still be there
to protect the * from mingw.
Scott Robison
2011-04-07 19:33:09 UTC
Permalink
On Thu, Apr 7, 2011 at 1:24 PM, Ron Wilson <***@gmail.com> wrote:
> On Thu, Apr 7, 2011 at 3:16 PM, Scott Robison <***@scottrobison.us> wrote:
>> I believe the glob-style wildcard pattern matching is being performed
>> by mingw during program startup before handing control over to main
>> (because cmd.exe does not do wildcard expansion itself in either
>> Windows 7 or XP).
>
> And, I would guess that cmd.exe is stripping off the "s.
>
> So, maybe:
>
> fossil setting crnl-glob "'*'"
>
> would work. After cmd.exe strips off the "s, 's would still be there
> to protect the * from mingw.

Ah, excellent point. cmd.exe strips quotes so that there is a way to
embed separator characters such as space in a command line argument.

In any case, I just tested and it appears that using single quotes
instead of double quotes is sufficient to get the asterisk through the
command line processing software stack.

SDR
s***@gmail.com
2011-04-07 20:20:28 UTC
Permalink
Confirmed. Single quotes work on Win7.

On Thu, Apr 7, 2011 at 3:33 PM, Scott Robison <***@scottrobison.us> wrote:
> On Thu, Apr 7, 2011 at 1:24 PM, Ron Wilson <***@gmail.com> wrote:
>> On Thu, Apr 7, 2011 at 3:16 PM, Scott Robison <***@scottrobison.us> wrote:
>>> I believe the glob-style wildcard pattern matching is being performed
>>> by mingw during program startup before handing control over to main
>>> (because cmd.exe does not do wildcard expansion itself in either
>>> Windows 7 or XP).
>>
>> And, I would guess that cmd.exe is stripping off the "s.
>>
>> So, maybe:
>>
>> fossil setting crnl-glob "'*'"
>>
>> would work. After cmd.exe strips off the "s, 's would still be there
>> to protect the * from mingw.
>
> Ah, excellent point. cmd.exe strips quotes so that there is a way to
> embed separator characters such as space in a command line argument.
>
> In any case, I just tested and it appears that using single quotes
> instead of double quotes is sufficient to get the asterisk through the
> command line processing software stack.
>
> SDR
> _______________________________________________
> fossil-users mailing list
> fossil-***@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
Wilson, Ronald
2011-04-07 20:44:58 UTC
Permalink
>
> Confirmed. Single quotes work on Win7.
>

Actually, single quotes don't work either because the single quotes get preserved in fossil:

PS C:\rev\src\fossil> cmd
Microsoft Windows [Version 6.0.6002]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.

C:\rev\src\fossil>fossil setting crnl-glob '*'

C:\rev\src\fossil>fossil settings
access-log
auto-captcha
auto-shun
autosync (local) 1
binary-glob
clearsign
crnl-glob (local) '*'
default-perms
diff-command
dont-push
editor
gdiff-command
gmerge-command
https-login
ignore-glob
http-port
localauth (local) 0
main-branch
manifest (local) 1
max-upload
mtime-changes
pgp-command
proxy
repo-cksum
self-register
ssh-command
web-browser

Ron Wilson, Engineering Project Lead
(o) 434.455.6453, (m) 434.851.1612, www.harris.com

HARRIS CORPORATION | RF Communications Division assuredcommunications(tm)
Scott Robison
2011-04-07 20:50:16 UTC
Permalink
On Thu, Apr 7, 2011 at 2:44 PM, Wilson, Ronald <***@harris.com> wrote:
>>
>> Confirmed. Single quotes work on Win7.
>>
>
> Actually, single quotes don't work either because the single quotes get preserved in fossil:

According to http://gnuwin32.sourceforge.net/compile.html:

Filename globbing

Wildcards on the command-line are expanded by the command-line
interpreter. If you wish to disable this filename globbing, then add

int _CRT_glob = 0;

to the beginning of the main program file.

Perhaps this will be necessary for Windows builds.

SDR
Bill Burdick
2011-04-07 20:59:17 UTC
Permalink
I wonder if this would affect commands like fossil add *.txt


Bill


On Thu, Apr 7, 2011 at 3:50 PM, Scott Robison <***@scottrobison.us> wrote:

> On Thu, Apr 7, 2011 at 2:44 PM, Wilson, Ronald <***@harris.com>
> wrote:
> >>
> >> Confirmed. Single quotes work on Win7.
> >>
> >
> > Actually, single quotes don't work either because the single quotes get
> preserved in fossil:
>
> According to http://gnuwin32.sourceforge.net/compile.html:
>
> Filename globbing
>
> Wildcards on the command-line are expanded by the command-line
> interpreter. If you wish to disable this filename globbing, then add
>
> int _CRT_glob = 0;
>
> to the beginning of the main program file.
>
> Perhaps this will be necessary for Windows builds.
>
> SDR
> _______________________________________________
> fossil-users mailing list
> fossil-***@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
Wilson, Ronald
2011-04-08 00:07:32 UTC
Permalink
you at correct. we need file expansion on globs, just not in this case. I'll be content to use the ui for this one.

rw

from my mobile 434.851.1612

On Apr 7, 2011, at 4:59 PM, "Bill Burdick" <***@gmail.com<mailto:***@gmail.com>> wrote:

I wonder if this would affect commands like fossil add *.txt


Bill


On Thu, Apr 7, 2011 at 3:50 PM, Scott Robison <<mailto:***@scottrobison.us>***@scottrobison.us<mailto:***@scottrobison.us>> wrote:
On Thu, Apr 7, 2011 at 2:44 PM, Wilson, Ronald <<mailto:***@harris.com>***@harris.com<mailto:***@harris.com>> wrote:
>>
>> Confirmed. Single quotes work on Win7.
>>
>
> Actually, single quotes don't work either because the single quotes get preserved in fossil:

According to <http://gnuwin32.sourceforge.net/compile.html> http://gnuwin32.sourceforge.net/compile.html:

Filename globbing

Wildcards on the command-line are expanded by the command-line
interpreter. If you wish to disable this filename globbing, then add

int _CRT_glob = 0;

to the beginning of the main program file.

Perhaps this will be necessary for Windows builds.

SDR
Benoit Mortgat
2011-04-08 04:35:24 UTC
Permalink
I already had reported this problem on the mailing list one month ago.
http://www.mail-archive.com/fossil-***@lists.fossil-scm.org/msg03942.html

My workaround was basically the following:

fossil sqlite3 -R "%LOCALAPPDATA%\_fossil"
INSERT OR REPLACE INTO global_config(name, text) VALUES('crnl-glob','*');
.q


On Fri, Apr 8, 2011 at 02:07, Wilson, Ronald <***@harris.com> wrote:

> you at correct. we need file expansion on globs, just not in this case.
> I'll be content to use the ui for this one.
>
> rw
>
> from my mobile 434.851.1612
>
> On Apr 7, 2011, at 4:59 PM, "Bill Burdick" <***@gmail.com<mailto:
> ***@gmail.com>> wrote:
>
> I wonder if this would affect commands like fossil add *.txt
>
>
> Bill
>
>
> On Thu, Apr 7, 2011 at 3:50 PM, Scott Robison <<mailto:
> ***@scottrobison.us>***@scottrobison.us<mailto:***@scottrobison.us>>
> wrote:
> On Thu, Apr 7, 2011 at 2:44 PM, Wilson, Ronald <<mailto:
> ***@harris.com>***@harris.com<mailto:***@harris.com>>
> wrote:
> >>
> >> Confirmed. Single quotes work on Win7.
> >>
> >
> > Actually, single quotes don't work either because the single quotes get
> preserved in fossil:
>
> According to <http://gnuwin32.sourceforge.net/compile.html>
> http://gnuwin32.sourceforge.net/compile.html:
>
> Filename globbing
>
> Wildcards on the command-line are expanded by the command-line
> interpreter. If you wish to disable this filename globbing, then add
>
> int _CRT_glob = 0;
>
> to the beginning of the main program file.
>
> Perhaps this will be necessary for Windows builds.
>
> SDR
> _______________________________________________
> fossil-users mailing list
> <mailto:fossil-***@lists.fossil-scm.org>
> fossil-***@lists.fossil-scm.org<mailto:fossil-***@lists.fossil-scm.org
> >
> <http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users>
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
> _______________________________________________
> fossil-users mailing list
> fossil-***@lists.fossil-scm.org<mailto:fossil-***@lists.fossil-scm.org
> >
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
> _______________________________________________
> fossil-users mailing list
> fossil-***@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>



--
Benoit Mortgat
20, avenue Marcel Paul
69200 Vénissieux, France
+33 6 17 15 41 58
+33 4 27 11 61 23
s***@gmail.com
2011-04-07 21:15:12 UTC
Permalink
LOL...I didn't check the resultant settings.
Bummer, so we gotta use the ui for windows 7 and beyond?

On Thu, Apr 7, 2011 at 4:44 PM, Wilson, Ronald <***@harris.com> wrote:
>>
>> Confirmed. Single quotes work on Win7.
>>
>
> Actually, single quotes don't work either because the single quotes get preserved in fossil:
>
> PS C:\rev\src\fossil> cmd
> Microsoft Windows [Version 6.0.6002]
> Copyright (c) 2006 Microsoft Corporation.  All rights reserved.
>
> C:\rev\src\fossil>fossil setting crnl-glob '*'
>
> C:\rev\src\fossil>fossil settings
> access-log
> auto-captcha
> auto-shun
> autosync             (local)  1
> binary-glob
> clearsign
> crnl-glob            (local)  '*'
> default-perms
> diff-command
> dont-push
> editor
> gdiff-command
> gmerge-command
> https-login
> ignore-glob
> http-port
> localauth            (local)  0
> main-branch
> manifest             (local)  1
> max-upload
> mtime-changes
> pgp-command
> proxy
> repo-cksum
> self-register
> ssh-command
> web-browser
>
> Ron Wilson, Engineering Project Lead
> (o) 434.455.6453, (m) 434.851.1612, www.harris.com
>
> HARRIS CORPORATION   |   RF Communications Division     assuredcommunications(tm)
> _______________________________________________
> fossil-users mailing list
> fossil-***@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
Konstantin Khomoutov
2011-04-07 22:21:31 UTC
Permalink
On Thu, Apr 07, 2011 at 05:15:12PM -0400, ***@gmail.com wrote:

> >> Confirmed. Single quotes work on Win7.
> > Actually, single quotes don't work either because the single quotes get preserved in fossil:
> >
> > PS C:\rev\src\fossil> cmd
> > Microsoft Windows [Version 6.0.6002]
> > Copyright (c) 2006 Microsoft Corporation.  All rights reserved.
> >
> > C:\rev\src\fossil>fossil setting crnl-glob '*'
> >
> > C:\rev\src\fossil>fossil settings
> > access-log
> > auto-captcha
> > auto-shun
> > autosync             (local)  1
> > binary-glob
> > clearsign
> > crnl-glob            (local)  '*'
[...]
> LOL...I didn't check the resultant settings.
> Bummer, so we gotta use the ui for windows 7 and beyond?
Could you please try
fossil settings crnl-glob \*
under Windows 7?
The backslash has no special meaning to cmd.exe, so may be MinGW detects
such escaping?

In either case, it's not clear why its globbing behaviour differs
between versions of the OS. This looks like a bug in MinGW runtime.
Continue reading on narkive:
Loading...