Determine proper argument formatting to handle various forms of quotes in values

This needs to also protect JSON values, which will be single quoted, from contents with single quotes.

Some references:

  • https://tldp.org/LDP/Bash-Beginners-Guide/html/sect_03_03.html
  • https://unix.stackexchange.com/questions/30903/how-to-escape-quotes-in-shell
  • https://stackoverflow.com/questions/10067266/when-to-wrap-quotes-around-a-shell-variable#:~:text=General%20rule%3A%20quote%20it%20if,since%20it's%20a%20numeric%20value.
  • https://github.com/urfave/cli/blob/master/docs/v2/manual.md#arguments (used by release-cli)

Could be solved by:

  • https://www.npmjs.com/package/any-shell-escape
  • https://www.npmjs.com/package/shell-escape
Edited Nov 13, 2020 by Aaron Goldenthal
Assignee Loading
Time tracking Loading