Skip to content

Commit

Permalink
Merge pull request #205 from Akasurde/i204
Browse files Browse the repository at this point in the history
csh: Define ``ECHO`` and ``COMMAND_SEP``

Reviewed-by: https://github.com/apps/ansible-zuul
  • Loading branch information
ansible-zuul[bot] authored Jun 9, 2021
2 parents 7417d85 + 51d1172 commit e068522
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 e068522

Please sign in to comment.