notes/os/shells/zsh/tools/debug/zsh-script-debug.txt
Ihar Hancharenka 5dff80e88e first
2023-03-27 16:52:17 +03:00

21 строка
324 B
Plaintext

functions -t func
enable [tracing] for function func.
functions -n func
This prevents function from execution - [nonexec].
functions -v func
Force each command to print [verbose] itself before expansion.
zsh options:
xtrace
set -x
#!/bin/sh -x
Every time the command executes - pring $PS4 and the command line.