diff --git a/changelogs/fragments/204_csh_shell.yml b/changelogs/fragments/204_csh_shell.yml new file mode 100644 index 0000000000..6d157a8337 --- /dev/null +++ b/changelogs/fragments/204_csh_shell.yml @@ -0,0 +1,3 @@ +--- +bugfixes: +- csh - define ``ECHO`` and ``COMMAND_SEP`` (https://github.com/ansible-collections/ansible.posix/issues/204). diff --git a/plugins/shell/csh.py b/plugins/shell/csh.py index 18dee95774..bce5734060 100644 --- a/plugins/shell/csh.py +++ b/plugins/shell/csh.py @@ -26,6 +26,10 @@ class ShellModule(ShellBase): # Family of shells this has. Must match the filename without extension SHELL_FAMILY = 'csh' + # commonly used + ECHO = 'echo' + COMMAND_SEP = ';' + # How to end lines in a python script one-liner _SHELL_EMBEDDED_PY_EOL = '\\\n' _SHELL_REDIRECT_ALLNULL = '>& /dev/null'