shell-expand-line ( \e\C-e ) expande as substituições de comandos no bash.
$ bind -p|grep shell-ex
"\e\C-e": shell-expand-line
$(!!)\e\C-e executaria o comando anterior novamente e inseria a saída:
"\eo": "$(!!)\e\C-e"
Ele também expande outras substituições de comando, mas não há comando como shell-expand-word .
No bash 4.0 ou posterior, você também pode ativar globstar , digitar **/file.txt e usar glob-complete-word ( \eg ) ou glob-expand-word ( \C-x* ).