⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dbg-show.inc

📁 bash debugger. You can use this tool to debug bash shell script
💻 INC
📖 第 1 页 / 共 2 页
字号:
    b) Accompany it with a written offer, valid for at least three    years, to give any third party, for a charge no more than your    cost of physically performing source distribution, a complete    machine-readable copy of the corresponding source code, to be    distributed under the terms of Sections 1 and 2 above on a medium    customarily used for software interchange; or,    c) Accompany it with the information you received as to the offer    to distribute corresponding source code.  (This alternative is    allowed only for noncommercial distribution and only if you    received the program in object code or executable form with such    an offer, in accord with Subsection b above.)The source code for a work means the preferred form of the work formaking modifications to it.  For an executable work, complete sourcecode means all the source code for all modules it contains, plus anyassociated interface definition files, plus the scripts used tocontrol compilation and installation of the executable.  However, as aspecial exception, the source code distributed need not includeanything that is normally distributed (in either source or binaryform) with the major components (compiler, kernel, and so on) of theoperating system on which the executable runs, unless that componentitself accompanies the executable.If distribution of executable or object code is made by offeringaccess to copy from a designated place, then offering equivalentaccess to copy the source code from the same place counts asdistribution of the source code, even though third parties are notcompelled to copy the source along with the object code.  4. You may not copy, modify, sublicense, or distribute the Programexcept as expressly provided under this License.  Any attemptotherwise to copy, modify, sublicense or distribute the Program isvoid, and will automatically terminate your rights under this License.However, parties who have received copies, or rights, from you underthis License will not have their licenses terminated so long as suchparties remain in full compliance.  5. You are not required to accept this License, since you have notsigned it.  However, nothing else grants you permission to modify ordistribute the Program or its derivative works.  These actions areprohibited by law if you do not accept this License.  Therefore, bymodifying or distributing the Program (or any work based on theProgram), you indicate your acceptance of this License to do so, andall its terms and conditions for copying, distributing or modifyingthe Program or works based on it.  6. Each time you redistribute the Program (or any work based on theProgram), the recipient automatically receives a license from theoriginal licensor to copy, distribute or modify the Program subject tothese terms and conditions.  You may not impose any furtherrestrictions on the recipients' exercise of the rights granted herein.You are not responsible for enforcing compliance by third parties tothis License.  7. If, as a consequence of a court judgment or allegation of patentinfringement or for any other reason (not limited to patent issues),conditions are imposed on you (whether by court order, agreement orotherwise) that contradict the conditions of this License, they do notexcuse you from the conditions of this License.  If you cannotdistribute so as to satisfy simultaneously your obligations under thisLicense and any other pertinent obligations, then as a consequence youmay not distribute the Program at all.  For example, if a patentlicense would not permit royalty-free redistribution of the Program byall those who receive copies directly or indirectly through you, thenthe only way you could satisfy both it and this License would be torefrain entirely from distribution of the Program.If any portion of this section is held invalid or unenforceable underany particular circumstance, the balance of the section is intended toapply and the section as a whole is intended to apply in othercircumstances.It is not the purpose of this section to induce you to infringe anypatents or other property right claims or to contest validity of anysuch claims; this section has the sole purpose of protecting theintegrity of the free software distribution system, which isimplemented by public license practices.  Many people have madegenerous contributions to the wide range of software distributedthrough that system in reliance on consistent application of thatsystem; it is up to the author/donor to decide if he or she is willingto distribute software through any other system and a licensee cannotimpose that choice.This section is intended to make thoroughly clear what is believed tobe a consequence of the rest of this License.  8. If the distribution and/or use of the Program is restricted incertain countries either by patents or by copyrighted interfaces, theoriginal copyright holder who places the Program under this Licensemay add an explicit geographical distribution limitation excludingthose countries, so that distribution is permitted only in or amongcountries not thus excluded.  In such case, this License incorporatesthe limitation as if written in the body of this License.  9. The Free Software Foundation may publish revised and/or new versionsof the General Public License from time to time.  Such new versions willbe similar in spirit to the present version, but may differ in detail toaddress new problems or concerns.Each version is given a distinguishing version number.  If the Programspecifies a version number of this License which applies to it and \"anylater version\", you have the option of following the terms and conditionseither of that version or of any later version published by the FreeSoftware Foundation.  If the Program does not specify a version number ofthis License, you may choose any version ever published by the Free SoftwareFoundation.  10. If you wish to incorporate parts of the Program into other freeprograms whose distribution conditions are different, write to the authorto ask for permission.  For software which is copyrighted by the FreeSoftware Foundation, write to the Free Software Foundation; we sometimesmake exceptions for this.  Our decision will be guided by the two goalsof preserving the free status of all derivatives of our free software andof promoting the sharing and reuse of software generally."      return 0      ;;    e | ed | edi | edit | editi | editin | editing )      [[ -n $label ]] && label='editing:  '      local onoff="on."      [[ -z $_Dbg_edit ]] && onoff='off.'     _Dbg_msg \"${label}Editing of command lines as they are typed is" $onoff      return 0      ;;    de|deb|debu|debug|debugg|debugger|debuggi|debuggin|debugging )      local onoff=${1:-'on'}      [[ -n $label ]] && label='debugger: '      local onoff="off."      (( $_Dbg_debug_debugger )) && onoff='on.'     _Dbg_msg \"${label}Allow debugging the debugger is" $onoff      return 0      ;;    di|dir|dire|direc|direct|directo|director|directori|directorie|directories)      local list=${_Dbg_dir[0]}      local -i n=${#_Dbg_dir[@]}      local -i i      for (( i=1 ; i < n; i++ )) ; do	list="${list}:${_Dbg_dir[i]}"      done     _Dbg_msg "Source directories searched: $list"      return 0      ;;    lin | line | linet | linetr | linetra | linetrac | linetrace )      [[ -n $label ]] && label='line tracing: '      local onoff="off."      (( $_Dbg_linetrace != 0 )) && onoff='on.'      _Dbg_msg \"${label}Show line tracing is" $onoff      _Dbg_msg \"${label}Show line trace delay is ${_Dbg_linetrace_delay}."      return 0      ;;    lis | list | lists | listsi | listsiz | listsize )      [[ -n $label ]] && label='listsize: '     _Dbg_msg \"${label}Number of source lines bashdb will list by default is" \      "$_Dbg_listsize."      return 0      ;;    lo | log | logg | loggi | loggin | logging )      shift      _Dbg_do_show_logging $*      ;;    p | pr | pro | prom | promp | prompt )      [[ -n $label ]] && label='prompt:   '      _Dbg_msg \"${label}bashdb's prompt is:\n" \"      \"$_Dbg_prompt_str\"."      return 0      ;;    sho|show|showc|showco|showcom|showcomm|showcomma|showcomman|showcommand )      [[ -n $label ]] && label='showcommand: '     _Dbg_msg \"${label}Show commands in debugger prompt is" \      "$_Dbg_show_command."      return 0      ;;    t|tr|tra|trac|trace|trace-|tracec|trace-co|trace-com|trace-comm|trace-comma|trace-comman|trace-command|trace-commands )      [[ -n $label ]] && label='trace-commands: '     _Dbg_msg \"${label}State of command tracing is" \      "$_Dbg_trace_commands."      return 0      ;;    v | ve | ver | vers | versi | versio | version )      _Dbg_do_show_versions      return 0      ;;    w | wa | war | warr | warra | warran | warrant | warranty )      _Dbg_do_info warranty      return 0      ;;    *)      _Dbg_msg "Don't know how to show $show_cmd."      return 1  esac}_Dbg_do_show_versions(){  _Dbg_printf "%-12s => $_Dbg_release" "Release"  _Dbg_msg "=================================================================="  if [[ -n $_Dbg_script ]] ; then    _Dbg_printf "%-12s => $_Dbg_ver", 'bashdb'    local version    for file in $_Dbg_includes; do      local set_version_cmd="version=\$_Dbg_${file}_ver"      eval $set_version_cmd      _Dbg_printf "%-12s => $version" $file    done  fi}# This is put at the so we have something at the end when we debug this.typeset -r _Dbg_show_ver=\'$Id: dbg-show.inc,v 1.8 2007/02/17 12:07:45 rockyb Exp $'#;;; Local Variables: ***#;;; mode:shell-script ***#;;; eval: (sh-set-shell "bash") ***#;;; End: ***

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -