簡體   English   中英

什么是Bash 5.0的--pretty-print選項用於?

[英]What is the --pretty-print option of Bash 5.0 used for?

使用Bash 5.0:

$ bash --help
GNU bash, version 5.0.0(1)-release-(x86_64-pc-linux-gnu)
Usage:  bash [GNU long option] [option] ...
    bash [GNU long option] [option] script-file ...
GNU long options:
    --debug
    --debugger
    --dump-po-strings
    --dump-strings
    --help
    --init-file
    --login
    --noediting
    --noprofile
    --norc
    --posix
    --pretty-print
    --rcfile
    --restricted
    --verbose
    --version

這是什么--pretty-print選項? 我無法在Bash 5.0手冊頁中找到它,也無法在互聯網上找到它! 太神秘了:哦

找到它8)

在代碼源中, CWRU/changelog行1427:

shell.c
    - --pretty-print: new invocation option, currently undocumented, dumps
      a pretty-printed version of a shell script given as an argument to
      stdout

我只是嘗試過,它的功能類似於函數type ,但適用於整個腳本! 整齊。 評論將被刪除!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM