resholve icon indicating copy to clipboard operation
resholve copied to clipboard

eval with quoted string argument

Open abathur opened this issue 5 years ago • 0 comments

I'm not sure how resholved should handle eval (and possibly other commands) with a quoted string argument. I could use some input and examples.

These now print a warning/request for feedback, but the previous handling resulted in something like:

  eval 'echo $HOME'
       ^
[ stdinNone ]:3: Can't resolve command 'echo $HOME' to a known function or executable

With some work, I can re-parse the content inside the string and validate it as well, but I haven't run into a situation yet where I wouldn't just exempt it anyways.

An obvious case that might change this is a script with hard-coded absolute paths hidden in strings.

abathur avatar Mar 28 '20 23:03 abathur