shell - How to debug a bash script? - Stack Overflow

shell - How to debug a bash script? - Stack Overflow

瀏覽:550
日期:2025-04-23
I found shellcheck utility and may be some folks find it interesting https://github.com/koalaman/shellcheck A little example: $ cat test.sh ARRAY=("hello there" world) for x in $ARRAY; do echo $x done $ shellcheck test.sh In test.sh line 3: for x in $ARRA...看更多