Home > Back-end >  how to split long command line in multiple lines with quote inside?
how to split long command line in multiple lines with quote inside?

Time:10-21

How can i write this multiline command:

"my.exe"^
 -Libraries="toto;^
tutu"^

it's work well for the first line "my.exe"^ but stop in the second line -Libraries="toto;^ and thus ignore the third line tutu"^

CodePudding user response:

You could use:

"my.exe"^
 -Libraries=^"toto;^
tutu"

The key is to have balanced quotes (multiple of 2) in each line, or escape unbalanced quotes to get a balanced line

  • Related