Cmdr icon indicating copy to clipboard operation
Cmdr copied to clipboard

Improve run-lines Functionality

Open TheNexusAvenger opened this issue 3 years ago • 0 comments

While working with Innovation Security, we discovered a couple of things with respect to run-lines when using init-edit and init-run:

  • By default, it doesn't appear to work at all since it uses Dispatcher:Run(...), which only works on the client, but is called by the server.
  • run-lines does not work with client commands, like alias.
  • run-lines throws an error if the input text contains a percent character anywhere.

This pull request attempts to address those problems by making run-lines run on the client instead of the server, and escape percent characters before being used with gsub.

TheNexusAvenger avatar Aug 10 '21 13:08 TheNexusAvenger