Unexpected environment variable substitutions occur on escaped history lines when pressing enter after the previous command included an escaped substitution-like string.
I mixed up my quotes and ended up with a file like the above. I can move or delete it without any issues, but McFly prints an error which suggests it is trying to perform substitution on the input, despite it being escaped.
This is an obscure issue, but I figured it might highlight other potential issues with the way history lines are handled, and might present a privilege escalation risk.
Unexpected environment variable substitutions occur on escaped history lines when pressing enter after the previous command included an escaped substitution-like string.
I mixed up my quotes and ended up with a file like the above. I can move or delete it without any issues, but McFly prints an error which suggests it is trying to perform substitution on the input, despite it being escaped.
This is an obscure issue, but I figured it might highlight other potential issues with the way history lines are handled, and might present a privilege escalation risk.