From 4604deca9295355488a69196e8d57ae6c2848925 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Tue, 2 Feb 2016 12:38:21 -0800 Subject: [PATCH] Change $() into backticks. Backticks should work for both POSIX and non-POSIX compatible shells. Fixes #14176 --- lib/ansible/plugins/shell/sh.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/plugins/shell/sh.py b/lib/ansible/plugins/shell/sh.py index 6fbb7439cc5..1e69665c0f7 100644 --- a/lib/ansible/plugins/shell/sh.py +++ b/lib/ansible/plugins/shell/sh.py @@ -42,8 +42,8 @@ class ShellModule(object): _SHELL_REDIRECT_ALLNULL = '> /dev/null 2>&1' _SHELL_AND = '&&' _SHELL_OR = '||' - _SHELL_SUB_LEFT = '"$(' - _SHELL_SUB_RIGHT = ')"' + _SHELL_SUB_LEFT = '"`' + _SHELL_SUB_RIGHT = '`"' _SHELL_GROUP_LEFT = '(' _SHELL_GROUP_RIGHT = ')'