I have noticed that using zsh the history command is not available when executed from Emacs via shell-command.
history | grep runserver results in zsh:fc:1: no such event: 1.
I also use the histdb command from https://github.com/larkery/zsh-histdb and although the command is available from zsh it can't be called from the Emacs.
histdb --limit 2000 | grep runserver outputs zsh:1: command not found: histdb
Obviously there is core aspect of shells I don't understand.
What is needed to fix these?
This phenomenon does not exist solely in Emacs. When I run a remote ssh command eg ssh [email protected] 'histdb --limit 2000' the same error message appears..