On Sun, Aug 29, 2021 at 04:28:08PM +0200, pelzflorian (Florian Pelz) wrote: > > (string-append > > "ACTION==\"add\", SUBSYSTEM==\"usb\", " > > "ATTR{product}==\"Example\", " > > "RUN+=\"/path/to/script\""))) > > The difference is that the manual uses spaces at the end of each > string except the last. > > You can use string-append instead of string-join, but then you need a > space at the end of the strings.
P.S. Or for testing just use one big one-line string instead: (define %onlykey-udev-rule (udev-rule "49-onlykey.rules" "ATTRS{idVendor}==\"1d50\", ATTRS{idProduct}==\"60fc\", ENV{ID_MM_DEVICE_IGNORE}=\"1\" ATTRS{idVendor}==\"1d50\", ATTRS{idProduct}==\"60fc\", […]" )) You can also use newlines in the string if syntax requires it. Regards, Florian