close Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": /usr/lib/python2.7/dist-packages/libsvn/_core.so: failed to map segment from shared object: Cannot allocate memory). Look in the Trac log for more information.

Changes between Version 2 and Version 3 of jazz/10-05-18


Ignore:
Timestamp:
May 18, 2010, 4:41:47 PM (14 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/10-05-18

    v2 v3  
    66知止而後能定,定而後能靜,靜而後能安,安而後能慮,慮而後能得
    77}}}
     8
     9== Bash Shell Script ==
     10
     11 * bash script 除錯(debug)與追蹤(trace)技巧:經常玩自由軟體的人一定要看別人的程式碼,或對自己寫的程式碼進行除錯。若是 perl script 可以'''加一個 -d 參數'''下去跑。 如果是 bash 呢?? bash script 可以'''加一個 -x 參數'''下去跑。 底下是一個範例:
     12{{{
     13jazz@jazzbook:~/mkxpud$ bash -x ./tools/mkxpud
     14+ export LC_ALL=C
     15+ LC_ALL=C
     16+ '[' -f tools/function.sh ']'
     17+ . tools/function.sh
     18+ '[' -z ']'
     19+ usage
     20+ echo 'Usage:
     21 mkxpud <option> [<project codename>] - Image Generator for xPUD
     22}}}