-
Notifications
You must be signed in to change notification settings - Fork 180
[WIP] Use posix shell explicitly for remote commands #73
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
[WIP] Use posix shell explicitly for remote commands #73
Conversation
Fixes issues on BSDs where the default shell is tcsh and "export=" syntax is invalid. Refs pressly#59.
|
Please, do not merge. I need to test this properly. Seems like |
Exporting works for me. But I can confirm the
Seems to be a quoting issue |
|
It is something that must be necessary in order to Sup works fine, the |
|
@juergenhoetzel Could you please show us that script, or some script that fails like your script. |
|
Given Supfile commands:
build:
script: ./build.shand ./build.sh: #!/bin/bash -eu
[[ "hello" != "there" ]] && exit 0 || exit 1 We need to make sure this is run under Bash, since there's I don't want to implement parser for the script's first line on a Golang side. We need to figure out a native solution in |
|
@juergenhoetzel btw: does your FreeBSD have /bin/bash natively? I'm inclined to switch to Bash by default for now, if available everywhere. |
|
A native solution to check which interpreter is using, is |
|
As far as I can see the shebang is not used in the |
|
@juergenhoetzel correct, the idea is to let the remote shells parse the shebangs, since we want to use |
This was exactly what i was thinking about. Have you considered using |
|
Closing in favor of #77. |
Fixes issues on BSDs where the default shell is tcsh and "export="
syntax is invalid. Refs #59.