-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Mix cmd
in alias no longer supports globs
#14506
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
Comments
This commit changed it: #14181 We can add a flag to enable shell like behavior once again. |
Hello, I wanted to say that I compiled Elixir
And did these steps and everything seems to work fine. bin/mix new hello cd hello Add this in the aliases: aliases() defp aliases do
[
copy: [
"cmd cp -R lib/* src"
]
]
end Create the mkdir src Run the alias with the expansion. ../bin/mix copy |
It may be a OS thing. |
hey @josevalim, I dont think this is true, I have tried cp '*.yml' lib it did not expanded to all @kenny-evitt , could you tell us what I think mine is the GNU |
What about using it with the @pxp9 I could reproduce it on macOS, although no way to get
|
Hey @josevalim, now testing with different version of Nixos. without quoting works as before
|
@pxp9 thank you, this is very unexpected because Elixir certainly isn't expanding In any case, I was adding a
So that's my suggestion for @kenny-evitt going forward. |
@pxp9 I don't know how to tell what version of @josevalim Invoking the shell directly (in the alias command(s)) was exactly the workaround I found – I'm fine using that. |
@josevalim @pxp9 Thanks for your help! 🙂 |
Elixir and Erlang/OTP versions
Operating system
macOS
14.1.2 (23B92)
Current behavior
Example alias from
mix.exs
:Running the alias:
Expected behavior
In (some) previous Elixir versions, the same alias works as expected. It definitely works in
1.13.4
.The only workaround – to run
cp
with a glob (or at least*
) – that I've found is to move thecp
command to a shell script and modify the alias to run the script via a shell program, example:The text was updated successfully, but these errors were encountered: