Script debugging for more information

You can edit variable PS4 (default is a + ) #export PS4='[— Zeile: $LINENO —] ‘ naw I debug my Script #sh -x ./test.sh # sh -x ./test.sh [— Zeile: 3 —] echo ‘Hello ,please give your name:’ Hello ,please give your name: [— Zeile: 4 —] read name Kraneis [— Zeile: 5 —] echo […]

Tagged ,