Is there an equivalent of POSIX shells'
set -x or
set -o xtrace that cause the shell to display the commands being run in the
Not yet. You can use
fish -p some_trace_file to run a fish session which outputs a profile to "some_trace_file", which can achieve almost the same effect.
The closest thing I can see, similar to
set -o xtrace in
zsh, by calling
-d 4 or
$ fish -d 4 -c 'echo 1' fish: Exec job 'builtin source /usr/share/fish/config.fish 2>/dev/null' with id 1 fish: Exec job 'set -g IFS \n\ \t' with id 2 fish: Set status of set -g IFS \n\ \t to 0 using short circuit fish: Job is constructed fish: Continue job 2, gid 0 (set -g IFS \n\ \t), COMPLETED, NON-INTERACTIVE ... fish: Exec job 'echo 1' with id 1 1 fish: Set status of echo 1 to 0 using short circuit fish: Job is constructed fish: Continue job 1, gid 0 (echo 1), COMPLETED, NON-INTERACTIVE