easyoptions icon indicating copy to clipboard operation
easyoptions copied to clipboard

Crashes on single quotes in comments

Open fatso83 opened this issue 6 years ago • 0 comments

A line such as the following is not handled by EasyOptions:

##      @script.name --set=switch-applications-backward "'<Shift><Super>Tab', '<Shift><Alt>Tab'"

It fails with the error message /home/carlerik/dev/dotfiles/utils/scripts/easyoptions.sh: line 45: Super: No such file or directory

See the fix implemented in https://github.com/fatso83/dotfiles/commit/6300259fb17e258f44eae12012a808be33ae019b for a fix to a doc string that was due to easyoptions not handling the single quotes. This makes it impossible to have examples with embedded quotes, as you can see from this line: https://github.com/fatso83/dotfiles/commit/6300259fb17e258f44eae12012a808be33ae019b#diff-9c48148cc281ecbcddc2e236257e924bR28. This is actually the second time in a row I have been bitten by this bug, but I had already forgotten about it by the last time ...

fatso83 avatar Jun 19 '18 07:06 fatso83