matryer / xbar

Put the output from any script or program into your macOS Menu Bar (the BitBar reboot)
https://xbarapp.com
MIT License
17.58k stars 642 forks source link

`=` not allowed in variables defaults #832

Open kdeldycke opened 2 years ago

kdeldycke commented 2 years ago

Given the following variable declaration:

# <xbar.var>string(VAR_MONOSPACE_FONT="font=Menlo size=12"): Default configuration for monospace fonts.</xbar.var>

A run of the plugin in a terminal reveal an over-stripping at the first equal (=) occurence in the default value:

$ VAR_MONOSPACE_FONT="font" '~/xbar/plugins/meta_package_manager.7h.py'

Here I expect the full default value to be left as-is:

$ VAR_MONOSPACE_FONT="font=Menlo size=12" '~/xbar/plugins/meta_package_manager.7h.py'

This issue has been uncovered while working on my meta_package_manager.7h.py plugin.