Bash command quoting issue

后端 未结 1 1157
抹茶落季
抹茶落季 2020-12-07 03:33

I have this weird issue, I can\'t understand why is happening. It should be a piece of cake for any bash ninja.

OPTIONS=\"-auto -batch -ignore \'Path one\' -         


        
相关标签:
1条回答
  • 2020-12-07 03:42

    BASH FAQ entry #50: "I'm trying to put a command in a variable, but the complex cases always fail!"

    options=(-auto -batch -ignore 'Path one' ...)
    unison "${options[@]}" a b
    
    0 讨论(0)
提交回复
热议问题