Giter Club home page Giter Club logo

Comments (3)

dharple avatar dharple commented on June 26, 2024 1

The detoxrc perser is just looking for a string, so you can't use a shell wildcard, a C escape sequence, or a regex bracket expression.

You can, however, just insert an actual Control-M into the string. It gets really weird, because Control-M affects the way the console works.

$ tail /tmp/detoxrc.sample 

ignore {
	filename ".arch-params";
	filename ".evolution";
	filename ".gnome";
	filename ".mozilla";
	filename ".themes";
	filename "{arch}";
";	filename "Icon
};

Note that the closing quote now appears to be at the start of the line.

Anyway, you should be able to cut and paste it out of this: detoxrc.zip . I tested it to confirm that it will work.

$ mkdir /tmp/test
$ cd /tmp/test
$ touch $(printf "Icon\r") 
$ ls
'Icon'$'\r'
$ detox -f /tmp/detoxrc.sample -nv .
Scanning: .

With the original config file:

$ detox -nv .
Scanning: .
 -> ./Icon_

Note that the original filename in the example above is overwritten due to the Control-M in the filename resetting the cursor position to the start of the line.

from detox.

dharple avatar dharple commented on June 26, 2024

And thank you for the compliment!

from detox.

b-g avatar b-g commented on June 26, 2024

Hi @dharple, Sorry for slow response! Had a little internet detox in the Alps :)

Many thanks for the solution! This works!

For others coming across this esoteric issue:
I couldn't copy and paste the magic Control-M line in my normal code editors e.g. Sublime Text and had to try out a few other editors ... for some weird reason just macOS on-board TextEdit manged to do the trick for me. 🤷

from detox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.