In doom emacs, I'm setting some aliases in my config as follows:
(set-eshell-alias!
"ls" "exa --icons $*"
"doomsync" "~/.emacs.d/bin/doom sync"
"rm" "rm -Iv $*"
"mv" "mv -iv $*"
"ps-sorted-by-cpu" "ps c -eo pid,user,command,%mem,%cpu --sort %cpu ; echo 'pid,user,command,%mem,%cpu'"
"ps-sorted-by-mem" "ps c -eo pid,user,command,%mem,%cpu --sort %mem ; echo 'pid,user,command,%mem,%cpu'")
These mostly work fine, except mv. If I try to do that with my alias I get the following
~/Downloads/test λ mkdir a
~/Downloads/test λ touch b
~/Downloads/test λ ls
a b
~/Downloads/test λ mv b a
mv: missing destination file or directory
I noticed this thread created on a very similar issue a few years ago, however that same thread notes that this had been fixed on the master branch of emacs, so I assume this is a different issue? Anyone know what might be going on here?