Re: [fossil-users] fossil CLI tricks: negative pattern matching

2014-06-19 Thread Stephan Beal
On Thu, Jun 19, 2014 at 6:09 PM, Alysson Gonçalves de Azevedo agalys...@gmail.com wrote: /tmp/fossil $ fossil commit -m message folder/!(ipsum) i'm a little scared to try that, but: [odroid@host:~/fossil/cwal/s2]$ ls unit/!(*.s2) unit/000-000-abc.s2~ unit/000-010-compare

Re: [fossil-users] fossil CLI tricks: negative pattern matching

2014-06-19 Thread Ron Wilson
On Thu, Jun 19, 2014 at 12:09 PM, Alysson Gonçalves de Azevedo agalys...@gmail.com wrote: Hi all. Just like Beal shared with us the # trick, today i'll share how i can commit all except one file using negative patterns

Re: [fossil-users] fossil CLI tricks: negative pattern matching

2014-06-19 Thread Stephan Beal
On Thu, Jun 19, 2014 at 7:14 PM, Ron Wilson ronw.m...@gmail.com wrote: Which shell? bash gives me the error: !: event not found That's my historical experience with '!' as well, but it works here: [odroid@host:~/fossil/cwal/s2]$ echo $SHELL /bin/bash [odroid@host:~/fossil/cwal/s2]$

Re: [fossil-users] fossil CLI tricks: negative pattern matching

2014-06-19 Thread Abilio Marques
4.3.18 here, not working. FreeBSD 10.0 2014-06-19 13:06 GMT-04:30 Stephan Beal sgb...@googlemail.com: On Thu, Jun 19, 2014 at 7:14 PM, Ron Wilson ronw.m...@gmail.com wrote: Which shell? bash gives me the error: !: event not found That's my historical experience with '!' as well, but it

Re: [fossil-users] fossil CLI tricks: negative pattern matching

2014-06-19 Thread Alysson Gonçalves de Azevedo
Maybe you have to enable this extension (it's said on the link) $ shopt -s extglob $ shopt extglob extglob on Alysson Gonçalves de Azevedo Anarcho-syndicalism is a way of preserving freedom. - Monty Python 2014-06-19 15:04 GMT-03:00 Abilio Marques amarq...@smartappsla.com:

[fossil-users] fossil CLI tricks: negative pattern matching

2014-06-19 Thread Andy Goth
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 6/19/2014 11:09 AM, Alysson Gonçalves de Azevedo wrote: Hi all. Just like Beal shared with us the # trick, today i'll share how i can commit all except one file using negative patterns

Re: [fossil-users] fossil CLI tricks: negative pattern matching

2014-06-19 Thread Alysson Gonçalves de Azevedo
And yeah, I agree with Beal for beeing cautious using this feature. we need to know how extglob works so we won't get in trouble. [odroid@host:~/fossil/cwal/s2]$ ls unit/!(*.s2) This won't match files outside unit, so if there are files to be committed outside that door, you need to handle them

[fossil-users] fossil CLI tricks: negative pattern matching

2014-06-19 Thread Andy Goth
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 6/19/2014 1:50 PM, Alysson Gonçalves de Azevedo wrote: And yeah, I agree with Beal for beeing cautious using this feature. we need to know how extglob works so we won't get in trouble. Whenever I'm unsure if a glob or substitution or other