{"version":"2.1.281","anchor":"bash-rm-checker-now-reads-through-evaltrap-strings","canonical_anchor":"bash-rm-checker-now-reads-through-evaltrap-strings","heading":"Bash rm checker now reads through eval\/trap strings","tier":"notice","area":"Permissions","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.281\/e\/bash-rm-checker-now-reads-through-evaltrap-strings","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.281","markdown":"### Bash rm checker now reads through eval\/trap strings\n\nThe rm safety check now looks inside quoted eval and trap strings to find removals hidden there\n\n**What**\n\n`eval` runs a piece of text as a command, and `trap` sets a command to run later when the shell receives a signal. When the rm safety check scans commands that contain `$` and assign variables, it now looks inside the text given to `trap` as well as to `eval`. It also strips any opening quotes, so an `rm` wrapped in a quoted `eval` or `trap` string is checked too.\n\n**Why**\n\nA risky removal tucked inside a quoted `eval` or `trap` could previously pass the check unexamined. It is now caught like any other `rm`.\n\n- Area: Permissions\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5"}