Skip to content

Commit

Permalink
csh: Define ECHO and COMMAND_SEP
Browse files Browse the repository at this point in the history
Fixes: #204

Signed-off-by: Abhijeet Kasurde <[email protected]>
  • Loading branch information
Akasurde committed Jun 9, 2021
1 parent 9d4ae8b commit 51d1172
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changelogs/fragments/204_csh_shell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bugfixes:
- csh - define ``ECHO`` and ``COMMAND_SEP`` (https://github.com/ansible-collections/ansible.posix/issues/204).
4 changes: 4 additions & 0 deletions plugins/shell/csh.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 51d1172

Please sign in to comment.