On 2024-03-29 2:41 am, Rip _Mus wrote:
Hello,
on mac, I want to insert this flag on compilation:

-e '(define-public part 'cello)'

But this give me an "error near unexpected token". I think that the problem
is the ' near the symbol name.
I tried enclosing in double quotation marks, as on Windows, but it is not
working.
I'm using szh on terminal. In the Lilypond file i put the #(use-modules
(guile-user))

Can somebody help me?


For most shells, you escape single quotes with the '\'' pattern if you are working within single-quoted strings:

####
-e '(define-public part '\''cello)'
####

Not sure why the double-quoted string would have failed, though.


-- Aaron Hill

Reply via email to