Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

commands fail if your login shell is tcsh #75

Closed
cove opened this issue May 7, 2012 · 1 comment
Closed

commands fail if your login shell is tcsh #75

cove opened this issue May 7, 2012 · 1 comment

Comments

@cove
Copy link

cove commented May 7, 2012

tcsh appears to handle escaped chars differently than bash, which results in commands failing with a syntax error.

tcsh --version
tcsh 6.14.00 (Astron) 2005-03-25 (x86_64-unknown-linux) options wide,nls,dl,al,kan,sm,rh,color,filec

e.g.
def test():
file_write('/afile', 'data')

Results in:
[myserver01] Executing task 'test'
[myserver01] run: test -e '/afile' && echo OK ; true
[myserver01] Passphrase for private key:
[myserver01] out: OK

[myserver01] run: sha256sum "/afile" | cut -d" " -f1
[myserver01] out: Unmatched ".

Fatal error: run() received nonzero return code 1 while executing!

Requested: sha256sum "/afile" | cut -d" " -f1
Executed: /bin/bash -l -c "sha256sum "/afile" | cut -d" " -f1"

Aborting.
Disconnecting from myserver01... done.

@sebastien
Copy link
Owner

Cuisine is only designed for SH-compatible shells, so TCSH/CSH is not supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants