M
M
maned72020-05-12 08:30:03
zsh
maned7, 2020-05-12 08:30:03

Why does an alias with a complex command not work in zsh?

I add lines to ~/.zshrc

alias dcud="docker-compose up -d"
alias dsa="docker stop $(docker ps -a -q)"

The dcud command works great.
The dsa command produces the following log:
zsh: command not found: cbed1b3a2ee0
zsh: command not found: 17bdc53a75bf


As I understand it, the command inside the brackets was executed, but the "external" command was not.
The question is why and how to solve?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question