-
Notifications
You must be signed in to change notification settings - Fork 2k
set: -g: invalid option #4035
Comments
I'm a bit confused by the behavior. |
You might want to check that |
@nathanleclaire The weird thing is that even if we run this script inside a bash shell (aka typing I believe it to be somewhere in the sector of |
Oh we also tried |
fwiw, I'm seeing the same thing on OS X sierra running from "bash --login" shell (w/ fish as the default) ok - so, somewhere, in the depths of the OS, the $SHELL var is still returning fish (even if you're in a bash login shell) so try updating your script from to eval "$(docker-machine env lacqueristas --shell bash)" the equiv worked for me |
Ah, yeah, I've seen that before @matthewayers - good callout, that is most likely the issue |
While attempting to share my docker development environment with a friend we ran into a rather strange issue. I'm running zsh and she's running fish. All scripts I've written work on my machine, but as soon as she tries to use ones with the
eval "$(docker-machine env lacqueristas)"
line things fall apart:We investigated and found it started here, with the eval line in this file:
When we made the script fish compatible (
&&
->; and
for example) it worked fine.Finally she tried to push the default shell and it worked! Here's what it looked like:
Why does this happen and how can we really fix it?
The text was updated successfully, but these errors were encountered: