multicore-locks / litl

LiTL: Library for Transparent Lock Interposition
MIT License
75 stars 21 forks source link

liblock.in: double-quote $@ before invoking subshell #3

Closed cota closed 6 years ago

cota commented 6 years ago

This fixes the invocation of programs with quoted parameters, since '"$@"' preserves the original argument string instead of stripping one quotation level like '$@' does.

Signed-off-by: Emilio G. Cota cota@braap.org

cota commented 6 years ago

See this comment for more details: https://stackoverflow.com/a/3990540

HugoGuiroux commented 6 years ago

Thanks for the PR and for the link, now I understand why quotes are needed.