cd is a built in, not an actual program, you can’t shell out to it. Even if you could, the change of working directory were only happening in the subshell, and lost with it, when cmd/2 returns.
@kaa.python the expansion of wildcards is also done by the shell, and not the tar program. You need to call Path.wildcard in Elixir if you want to expand wildcards for a certain path. For example:
Alternatively, it’s possible to call the shell and let it do the expansion. This is also what you’d use to take advantage of other shell features like | pipes or > redirection.