FAQ Pseudo-debugowanie skryptu Bash

Discussion in 'Oh'Linux? Software hacking' started by Silas Mariusz, Jul 31, 2015.

Register FREE now for increased access

Already registered?

Log in or Sign up

QNAP Polska - Oficjalne forum wsparcia technicznego QNAP Club's content is only available to our members. Register now to access our content and start discussing with other people in our forums. Plus you can:
  • Like interesting posts
  • Watch threads and receive frequent updates via email
  • Exchange messages with other members in private conversations
Sign up now!
 
  1. Silas Mariusz
    Offline

    Silas Mariusz SysOp Administrator

    Joined:
    Apr 5, 2008
    Messages:
    7,181
    Location:
    Nowy Sącz
    Local Time:
    7:53 PM
    Ratings:
    +1,584 / 31 / -6
    Followers:
    31
    QNAP:
    TVS-x71
    Ethernet:
    1 GbE
    TVS-x71 1 GbE
    Eksportujemy zmienną globalną PS4, która będzie odpowiedzialna za kwestie wizualną: Code (Bash): export PS4="\e[0;33m+\e[0;36m"'(${BASH_SOURCE##*/}:\e[0;35m${LINENO}'"\e[0;31m\e[0;37m) " Aby uruchomić skrypt bash z włączonym debugowaniem, ....... ..................... ............. ........ ........... .. ................................... .......... .... .. ............ .... ........ ...... ... . .. ............... . .......... ....... .... ... .... . . .... . ... .. ..................................... ................ . ....... .. ......... ........... ........ ... .......... .. ..... ............. ................................................ ...... ...... ...... . .. ...... ..... ....... ... ......... .......................................... ...... ...... . ....... .. ..... ......... .......... .. ......... ... .... ........ ................. . . ... ........... . ... ........................ ... .. .......... .. ....................................................... ....................... .... ......................................