Skip to content

Help escaping quotation characters in bash string #7264

Closed Answered by scottsteely
scottsteely asked this question in Help
Discussion options

You must be logged in to vote

Well I feel dumb. All I was missing was an eval

x="-size 250x50 xc:none -undercolor white -pointsize 20 -gravity center -draw 'text 0,0 test' -trim +repage output.gif"
eval "magick $x"

Problem solved.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by scottsteely
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants