Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
# source:
a() b mp3 m4a “$@“"$@"
b() eval “$"${1}-to-${2} $@:q”q"
alias mp3-to-m4a=‘ffmpegm4a='ffmpeg ...’'
#
$ traceall a a.mp3 a.m4a
# should return:
Functions:
a
b
Aliases:
mp3-to-m4a
commands:
ffmpeg
I want something like this:
# source:
a() b mp3 m4a “$@“
b() eval “${1}-to-${2} $@:q”
alias mp3-to-m4a=‘ffmpeg ...’
#
$ traceall a a.mp3 a.m4a
# should return:
Functions:
a
b
Aliases:
mp3-to-m4a
commands:
ffmpeg
I want something like this:
# source:
a() b mp3 m4a "$@"
b() eval "${1}-to-${2} $@:q"
alias mp3-to-m4a='ffmpeg ...'
#
$ traceall a a.mp3 a.m4a
# should return:
Functions:
a
b
Aliases:
mp3-to-m4a
commands:
ffmpeg
zsh: Is it possible to trace all functions and commands called and aliases expanded during a command’s execution?
I want something like this:
# source:
a() b mp3 m4a “$@“
b() eval “${1}-to-${2} $@:q”
alias mp3-to-m4a=‘ffmpeg ...’
#
$ traceall a a.mp3 a.m4a
# should return:
Functions:
a
b
Aliases:
mp3-to-m4a
commands:
ffmpeg