Try Removing

Try Removing

Try removing something but don't freak out if you cannot.

Terminal freaked out

Suppress with -f or --force.

text
rm -f

Then ZSH freak out

But ZSH will still freak out if you do something like rm -f *.config.js. This is because of the error message coming from the ZSH Glob search, not the rm part itself.

text
setopt +o nomatch

This will prevent ZSH from complaining when no match is found.

Then finally will freak out

js
{
    "clear": "rm -f *.config.js",
}

But still, this time, will complain when you run the rm command You need to explicitly quote it to avoid glob expansion. This is because will try to expand the blob instead of delegating it to the terminal (which we want.)

js
{
    "clear": "rm -f '*.config.js'",
}
Backlinks1