I\'m on a Mac and sometimes I use the say
command at the end of my scripts, like so:
system(\'say \"Finished successfully\"\')
But
Remove backticks (Kernel#`):
system("say \"#{my_variable}\"")
or
system("say '#{my_variable}'")
Either remove the system or remove the backticks:
a = "hello"
#=> "hello"
`say '#{a}'`
#=> ""
system("say '#{a}'")
#=> true
Since you edited your post to be single quotes instead of backticks, single quotes cannot support string interpolation, see this question for more details.