例如,我有一个简单的 bash 文件
#!/bin/bash cd ~/hello ls
如何让它在执行之前显示每个命令?Windows 批处理脚本中“@echo off”的效果正好相反。
scripting bash debugging
bash ×1
debugging ×1
scripting ×1