-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Multiple bash commands with "source" #6881
Comments
@DarioTurchi Could you please, add information asked in the bug's issue template so we can reproduce the problem? |
Hi, don't know where to find the template but the problem is pretty straightforward.
if instead I would execute: Am I doing something wrong or is it an actual issue ? |
man bash
This has nothing to do with docker-compose, and all with how bash handles aliases:
Aliases are inferior to functions in all scripted contexts, so use a function instead:
|
As explained by @glance- , it's not a |
I have a problem similar to that described in issue #2033 (multiple commands for a compose service), with the difference that the first command to be executed is a "source"
Assuming to have the script
script.sh
where the command aliasmyAlias
is defined, the following (solution proposed in issue #2033 )generates the following error
bash: myAlias: command not found
The text was updated successfully, but these errors were encountered: