You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I was trying to add the current user's .gitconfig to .ddev/homeadditions in a pre-start hook.
bashism anyways, but does not resolve ~ to home user directory
- exec-host: echo ~
- exec-host: echo $HOME
(outputs "~" "$HOME")
Tried running it though bash
- exec-host: bash -c "echo $HOME"
(outputs $HOME": -c: Zeile 0: End of file encountered while looking fo »"«
$HOME": -c: Zeile 1: Syntax error: Unexpected EOF.)
Describe the solution you'd like
It would be nice if the command string in there was just eval'ed without further escaping and the like.
Describe alternatives you've considered
Just run a bash file which does the job. In there you are not restricted.
Additional context
It might be difficult to make that cross-platform - if yes, I suggest adding a line to the documentation with the suggestion to use an external file before building complex commands in there ;)
The text was updated successfully, but these errors were encountered:
rfay
added a commit
to rfay/ddev
that referenced
this issue
Nov 15, 2019
Is your feature request related to a problem? Please describe.
I was trying to add the current user's .gitconfig to .ddev/homeadditions in a pre-start hook.
I expected something like this to work
(problems with [ paranthesis)
bashism anyways, but does not resolve ~ to home user directory
(outputs "~" "$HOME")
Tried running it though bash
(outputs $HOME": -c: Zeile 0: End of file encountered while looking fo »"«
$HOME": -c: Zeile 1: Syntax error: Unexpected EOF.)
Describe the solution you'd like
It would be nice if the command string in there was just eval'ed without further escaping and the like.
Describe alternatives you've considered
Just run a bash file which does the job. In there you are not restricted.
Additional context
It might be difficult to make that cross-platform - if yes, I suggest adding a line to the documentation with the suggestion to use an external file before building complex commands in there ;)
The text was updated successfully, but these errors were encountered: