Translations by pan93412

pan93412 has submitted the following strings to this translation. Contributions are visually coded: currently used translations, unreviewed suggestions, rejected suggestions.

351377 of 377 results
583.
Execute conditional command. Returns a status of 0 or 1 depending on the evaluation of the conditional expression EXPRESSION. Expressions are composed of the same primaries used by the `test' builtin, and may be combined using the following operators: ( EXPRESSION ) Returns the value of EXPRESSION ! EXPRESSION True if EXPRESSION is false; else false EXPR1 && EXPR2 True if both EXPR1 and EXPR2 are true; else false EXPR1 || EXPR2 True if either EXPR1 or EXPR2 is true; else false When the `==' and `!=' operators are used, the string to the right of the operator is used as a pattern and pattern matching is performed. When the `=~' operator is used, the string to the right of the operator is matched as a regular expression. The && and || operators do not evaluate EXPR2 if EXPR1 is sufficient to determine the expression's value. Exit Status: 0 or 1 depending on value of EXPRESSION.
2022-08-25
執行條件指令。 根據條件表示式 EXPRESSION 的求值回傳狀態 0 或 1。表示式按照 「test」內建的相同條件組成,或者可以有下列運算子連接而成: ( EXPRESSION ) 回傳 EXPRESSION 表示式的值 ! EXPRESSION 如果 EXPRESSION 表示式為假則為真,否則為假 EXPR1 && EXPR2 如果 EXPR1 和 EXPR2 表示式均為真則為真,否則為假 EXPR1 || EXPR2 如果 EXPR1 和 EXPR2 表示式中有一個為真則為真,否則為假 當使用「==」和「!=」運算子時,運算子右邊的字串被用作模式並且執行一個 符合。當使用「=~」運算子時,運算子右邊的字串被當做正規表示式來進行 符合。 運算子 && 和 || 將不對 EXPR2 表示式進行求值,如果 EXPR1 表示式足夠確定 整個表示式的值。 結束狀態: 根據 EXPRESSION 的值為 0 或 1。
2020-11-10
執行條件指令。 根據條件表示式 EXPRESSION 的求值回傳狀態 0 或 1。表示式按照 「test」內建的相同條件組成,或者可以有下列運算子連接而成: ( EXPRESSION ) 回傳 EXPRESSION 表示式的值 ! EXPRESSION 如果 EXPRESSION 表示式為假則為真,否則為假 EXPR1 && EXPR2 如果 EXPR1 和 EXPR2 表示式均為真則為真,否則為假 EXPR1 || EXPR2 如果 EXPR1 和 EXPR2 表示式中有一個為真則為真,否則為假 當使用「==」和「!=」運算子時,運算子右邊的字串被用作模式並且執行一個 符合。當使用「=~」運算子時,運算子右邊的字串被當做正規表示式來進行 符合。 運算子 && 和 || 將不對 EXPR2 表示式進行求值,如果 EXPR1 表示式足夠確定 整個表示式的值。 退出狀態: 根據 EXPRESSION 的值為 0 或 1。
584.
Common shell variable names and usage. BASH_VERSION Version information for this Bash. CDPATH A colon-separated list of directories to search for directories given as arguments to `cd'. GLOBIGNORE A colon-separated list of patterns describing filenames to be ignored by pathname expansion. HISTFILE The name of the file where your command history is stored. HISTFILESIZE The maximum number of lines this file can contain. HISTSIZE The maximum number of history lines that a running shell can access. HOME The complete pathname to your login directory. HOSTNAME The name of the current host. HOSTTYPE The type of CPU this version of Bash is running under. IGNOREEOF Controls the action of the shell on receipt of an EOF character as the sole input. If set, then the value of it is the number of EOF characters that can be seen in a row on an empty line before the shell will exit (default 10). When unset, EOF signifies the end of input. MACHTYPE A string describing the current system Bash is running on. MAILCHECK How often, in seconds, Bash checks for new mail. MAILPATH A colon-separated list of filenames which Bash checks for new mail. OSTYPE The version of Unix this version of Bash is running on. PATH A colon-separated list of directories to search when looking for commands. PROMPT_COMMAND A command to be executed before the printing of each primary prompt. PS1 The primary prompt string. PS2 The secondary prompt string. PWD The full pathname of the current directory. SHELLOPTS A colon-separated list of enabled shell options. TERM The name of the current terminal type. TIMEFORMAT The output format for timing statistics displayed by the `time' reserved word. auto_resume Non-null means a command word appearing on a line by itself is first looked for in the list of currently stopped jobs. If found there, that job is foregrounded. A value of `exact' means that the command word must exactly match a command in the list of stopped jobs. A value of `substring' means that the command word must match a substring of the job. Any other value means that the command must be a prefix of a stopped job. histchars Characters controlling history expansion and quick substitution. The first character is the history substitution character, usually `!'. The second is the `quick substitution' character, usually `^'. The third is the `history comment' character, usually `#'. HISTIGNORE A colon-separated list of patterns used to decide which commands should be saved on the history list.
2022-08-25
常用 shell 變數名稱和使用。 BASH_VERSION 目前 Bash 的版本資訊。 CDPATH 用於「cd」指令參數搜尋分號分隔的目錄列表 GLOBIGNORE 路徑擴充套件時忽略的檔名符合模式列表, 以分號分隔。 HISTFILE 您的指令歷史記錄存放的檔案名稱。 HISTFILESIZE 歷史記錄檔案最多可以儲存的列數。 HISTSIZE 一個執行的 shell 最多可以訪問的歷史記錄指令列數。 HOME 您登入目錄的完整路徑。 HOSTNAME 目前主機的主機名稱。 HOSTTYPE 目前版本的 BASH 在其之上執行的 CPU 類型。 IGNOREEOF 控制 shell 收到檔案結束符做為單一輸入後的 動作。如果設定這個變數,則它的值是 shell 結束之前在 一個空列上可以連續看到的檔案結束符數量(預設為 10)。 未設定時,檔案結束符標誌著輸入的結束。 MACHTYPE 描述目前執行 Bash 的系統字串。 MAILCHECK Bash 檢測新郵件的頻率,以秒為單位。 MAILPATH Bash 從中檢測新郵件的檔案列表,以分號分隔。 OSTYPE 執行 Bash 的 Unix 版本。 PATH 當尋找指令時搜尋的目錄列表,以冒號分隔。 PROMPT_COMMAND 印出每一個主提示符之前執行的命 令。 PS1 主提示符字串。 PS2 從提示符字串。 PWD 目前目錄的完整路徑。 SHELLOPTS 已啟用的 shell 選項列表,以冒號分隔。 TERM 目前終端類型的名稱。 TIMEFORMAT 以關鍵則「time」顯示的時間統計資訊的輸出 格式。 auto_resume 非空時,一個單獨的指令詞會首先被在目前 停止的工作列表中搜尋。如果找到則該工作被置於前臺。 如果值為「exact」則意味著指令詞必須精確符合停止工作 列表中的指令。如果值為「substring」則意味著指令詞必 須符合工作的一個子字串。任何其他的值意味著指令詞 必須是停止工作的一個字首。 histchars 控制歷史記錄展開和快速取代的字元。第一個字元是 歷史記錄取代字元,通常是「!」。第二個字元是快速取代字元, 通常是「^」。第三個是歷史記錄註釋字元,通常是「#」。 HISTIGNORE 用於決定哪些指令被存入歷史記錄檔案的模式 列表,以冒號分隔。
2020-11-10
常用 shell 變數名稱和使用。 BASH_VERSION 目前 Bash 的版本資訊。 CDPATH 用於「cd」指令參數搜尋分號分隔的目錄列表 GLOBIGNORE 路徑擴充套件時忽略的檔名符合模式列表, 以分號分隔。 HISTFILE 您的指令歷史記錄存放的檔案名稱。 HISTFILESIZE 歷史記錄檔案最多可以儲存的列數。 HISTSIZE 一個執行的 shell 最多可以訪問的歷史記錄指令列數。 HOME 您登入目錄的完整路徑。 HOSTNAME 目前主機的主機名稱。 HOSTTYPE 目前版本的 BASH 在其之上執行的 CPU 類型。 IGNOREEOF 控制 shell 收到檔案結束符做為單一輸入後的 動作。如果設定這個變數,則它的值是 shell 退出之前在 一個空列上可以連續看到的檔案結束符數量(預設為 10)。 未設定時,檔案結束符標誌著輸入的結束。 MACHTYPE 描述目前執行 Bash 的系統字串。 MAILCHECK Bash 檢測新郵件的頻率,以秒為單位。 MAILPATH Bash 從中檢測新郵件的檔案列表,以分號分隔。 OSTYPE 執行 Bash 的 Unix 版本。 PATH 當尋找指令時搜尋的目錄列表,以冒號分隔。 PROMPT_COMMAND 印出每一個主提示符之前執行的命 令。 PS1 主提示符字串。 PS2 從提示符字串。 PWD 目前目錄的完整路徑。 SHELLOPTS 已啟用的 shell 選項列表,以冒號分隔。 TERM 目前終端類型的名稱。 TIMEFORMAT 以關鍵則「time」顯示的時間統計資訊的輸出 格式。 auto_resume 非空時,一個單獨的指令詞會首先被在目前 停止的工作列表中搜尋。如果找到則該工作被置於前臺。 如果值為「exact」則意味著指令詞必須精確符合停止工作 列表中的指令。如果值為「substring」則意味著指令詞必 須符合工作的一個子字串。任何其他的值意味著指令詞 必須是停止工作的一個字首。 histchars 控制歷史記錄展開和快速取代的字元。第一個字元是 歷史記錄取代字元,通常是「!」。第二個字元是快速取代字元, 通常是「^」。第三個是歷史記錄註釋字元,通常是「#」。 HISTIGNORE 用於決定哪些指令被存入歷史記錄檔案的模式 列表,以冒號分隔。
585.
Add directories to stack. Adds a directory to the top of the directory stack, or rotates the stack, making the new top of the stack the current working directory. With no arguments, exchanges the top two directories. Options: -n Suppresses the normal change of directory when adding directories to the stack, so only the stack is manipulated. Arguments: +N Rotates the stack so that the Nth directory (counting from the left of the list shown by `dirs', starting with zero) is at the top. -N Rotates the stack so that the Nth directory (counting from the right of the list shown by `dirs', starting with zero) is at the top. dir Adds DIR to the directory stack at the top, making it the new current working directory. The `dirs' builtin displays the directory stack. Exit Status: Returns success unless an invalid argument is supplied or the directory change fails.
2022-08-25
從堆疊中建立目錄。 從目錄堆疊中建立條目。不帶參數時,建立堆疊頂端目錄,並變更至新的堆疊 頂端目錄。 選項: -n 抑制從堆疊中刪除目錄時通常的目錄變換操作,從而僅對堆疊 進行操作。 參數: +N 刪除第 N 個目錄 (「dirs」顯示的目錄列表中左起,從零開始)。 例如:「popd +0」刪除第一個目錄,「popd +1」刪除第二個。 -N 刪除第 N 個目錄 (「dirs」顯示的目錄列表中右起,從零開始)。 例如:「popd -0」刪除最後一個目錄,,「popd -1」刪除倒數第二個。 「dirs」內建顯示目錄堆疊。 結束狀態: 回傳成功,除非使用了無效的參數或者目錄變換失敗。
2020-11-10
從堆疊中建立目錄。 從目錄堆疊中建立條目。不帶參數時,建立堆疊頂端目錄,並變更至新的堆疊 頂端目錄。 選項: -n 抑制從堆疊中刪除目錄時通常的目錄變換操作,從而僅對堆疊 進行操作。 參數: +N 刪除第 N 個目錄 (「dirs」顯示的目錄列表中左起,從零開始)。 例如:「popd +0」刪除第一個目錄,「popd +1」刪除第二個。 -N 刪除第 N 個目錄 (「dirs」顯示的目錄列表中右起,從零開始)。 例如:「popd -0」刪除最後一個目錄,,「popd -1」刪除倒數第二個。 「dirs」內建顯示目錄堆疊。 退出狀態: 回傳成功,除非使用了無效的參數或者目錄變換失敗。
2019-02-23
從堆疊中建立目錄。 從目錄堆疊中建立條目。不帶引數時,建立堆疊頂端目錄,並變更至新的堆疊 頂端目錄。 選項: -n 抑制從堆疊中刪除目錄時通常的目錄變換操作,從而僅對堆疊 進行操作。 引數: +N 刪除第 N 個目錄 (「dirs」顯示的目錄列表中左起,從零開始)。 例如:「popd +0」刪除第一個目錄,「popd +1」刪除第二個。 -N 刪除第 N 個目錄 (「dirs」顯示的目錄列表中右起,從零開始)。 例如:「popd -0」刪除最後一個目錄,,「popd -1」刪除倒數第二個。 「dirs」內建顯示目錄堆疊。 退出狀態: 回傳成功,除非使用了無效的引數或者目錄變換失敗。
586.
Remove directories from stack. Removes entries from the directory stack. With no arguments, removes the top directory from the stack, and changes to the new top directory. Options: -n Suppresses the normal change of directory when removing directories from the stack, so only the stack is manipulated. Arguments: +N Removes the Nth entry counting from the left of the list shown by `dirs', starting with zero. For example: `popd +0' removes the first directory, `popd +1' the second. -N Removes the Nth entry counting from the right of the list shown by `dirs', starting with zero. For example: `popd -0' removes the last directory, `popd -1' the next to last. The `dirs' builtin displays the directory stack. Exit Status: Returns success unless an invalid argument is supplied or the directory change fails.
2022-08-25
從堆疊中刪除目錄。 從目錄堆疊中刪除條目。不帶參數時,刪除堆疊頂端目錄,並變更至新的堆疊 頂端目錄。 選項: -n 抑制從堆疊中刪除目錄時通常的目錄變換操作,從而僅對堆疊 進行操作。 參數: +N 刪除第 N 個目錄 (「dirs」顯示的目錄列表中左起,從零開始)。 例如:「popd +0」刪除第一個目錄,「popd +1」刪除第二個。 -N 刪除第 N 個目錄 (「dirs」顯示的目錄列表中右起,從零開始)。 例如:「popd -0」刪除最後一個目錄,,「popd -1」刪除倒數第二個。 「dirs」內建顯示目錄堆疊。 結束狀態: 回傳成功,除非使用了無效的參數或者目錄變換失敗。
2020-11-10
從堆疊中刪除目錄。 從目錄堆疊中刪除條目。不帶參數時,刪除堆疊頂端目錄,並變更至新的堆疊 頂端目錄。 選項: -n 抑制從堆疊中刪除目錄時通常的目錄變換操作,從而僅對堆疊 進行操作。 參數: +N 刪除第 N 個目錄 (「dirs」顯示的目錄列表中左起,從零開始)。 例如:「popd +0」刪除第一個目錄,「popd +1」刪除第二個。 -N 刪除第 N 個目錄 (「dirs」顯示的目錄列表中右起,從零開始)。 例如:「popd -0」刪除最後一個目錄,,「popd -1」刪除倒數第二個。 「dirs」內建顯示目錄堆疊。 退出狀態: 回傳成功,除非使用了無效的參數或者目錄變換失敗。
2019-02-23
從堆疊中刪除目錄。 從目錄堆疊中刪除條目。不帶引數時,刪除堆疊頂端目錄,並變更至新的堆疊 頂端目錄。 選項: -n 抑制從堆疊中刪除目錄時通常的目錄變換操作,從而僅對堆疊 進行操作。 引數: +N 刪除第 N 個目錄 (「dirs」顯示的目錄列表中左起,從零開始)。 例如:「popd +0」刪除第一個目錄,「popd +1」刪除第二個。 -N 刪除第 N 個目錄 (「dirs」顯示的目錄列表中右起,從零開始)。 例如:「popd -0」刪除最後一個目錄,,「popd -1」刪除倒數第二個。 「dirs」內建顯示目錄堆疊。 退出狀態: 回傳成功,除非使用了無效的引數或者目錄變換失敗。
587.
Display directory stack. Display the list of currently remembered directories. Directories find their way onto the list with the `pushd' command; you can get back up through the list with the `popd' command. Options: -c clear the directory stack by deleting all of the elements -l do not print tilde-prefixed versions of directories relative to your home directory -p print the directory stack with one entry per line -v print the directory stack with one entry per line prefixed with its position in the stack Arguments: +N Displays the Nth entry counting from the left of the list shown by dirs when invoked without options, starting with zero. -N Displays the Nth entry counting from the right of the list shown by dirs when invoked without options, starting with zero. Exit Status: Returns success unless an invalid option is supplied or an error occurs.
2022-08-25
顯示目錄堆疊。 顯示目前記住的目錄列表。藉由「pushd」指令可以將目錄存入列表 中;「popd」指令可用於遍歷彈出列表。 選項: -c 刪除所有元素以清空目錄堆疊 -l 不印出與主目錄相關的波浪號字首的目錄 -p 每列一個條目印出目錄堆疊 -v 每列一個條目,以堆疊中位置為字首印出目錄堆疊 參數: +N 顯示 dirs 不帶選項啟動時顯示的目錄列表左起中第 N 個目錄,從零開始。 -N 顯示 dirs 不帶選項啟動時顯示的目錄列表右起中第 N 個目錄,從零開始。 結束狀態: 回傳成功,除非使用了無效的選項或者發生錯誤。
2020-11-10
顯示目錄堆疊。 顯示目前記住的目錄列表。藉由「pushd」指令可以將目錄存入列表 中;「popd」指令可用於遍歷彈出列表。 選項: -c 刪除所有元素以清空目錄堆疊 -l 不印出與主目錄相關的波浪號字首的目錄 -p 每列一個條目印出目錄堆疊 -v 每列一個條目,以堆疊中位置為字首印出目錄堆疊 參數: +N 顯示 dirs 不帶選項啟動時顯示的目錄列表左起中第 N 個目錄,從零開始。 -N 顯示 dirs 不帶選項啟動時顯示的目錄列表右起中第 N 個目錄,從零開始。 退出狀態: 回傳成功,除非使用了無效的選項或者發生錯誤。
2019-02-23
顯示目錄堆疊。 顯示當前記住的目錄列表。藉由「pushd」命令可以將目錄存入列表 中;「popd」命令可用於遍歷彈出列表。 選項: -c 刪除所有元素以清空目錄堆疊 -l 不印出與主目錄相關的波浪號字首的目錄 -p 每列一個條目印出目錄堆疊 -v 每列一個條目,以堆疊中位置為字首印出目錄堆疊 引數: +N 顯示 dirs 不帶選項啟動時顯示的目錄列表左起中第 N 個目錄,從零開始。 -N 顯示 dirs 不帶選項啟動時顯示的目錄列表右起中第 N 個目錄,從零開始。 退出狀態: 回傳成功,除非使用了無效的選項或者發生錯誤。
588.
Set and unset shell options. Change the setting of each shell option OPTNAME. Without any option arguments, list each supplied OPTNAME, or all shell options if no OPTNAMEs are given, with an indication of whether or not each is set. Options: -o restrict OPTNAMEs to those defined for use with `set -o' -p print each shell option with an indication of its status -q suppress output -s enable (set) each OPTNAME -u disable (unset) each OPTNAME Exit Status: Returns success if OPTNAME is enabled; fails if an invalid option is given or OPTNAME is disabled.
2022-08-25
設定和取消設定 shell 選項。 變更每個 shell <選項名稱> 的設定。不帶選項參數時, 顯示每個提供的 <選項名稱> 或所有 shell 選項 (如果沒有 傳入任何 <選項名稱>) 和是否每個都有設定到的指示。 選項: -o 限制 <選項名稱> 為定義用於「set -o」的選項 -p 印出每個 shell 選項並標註它的狀態。 -q 抑制輸出 -s 啟用(設定)每個 <選項名稱> 選項 -u 停用(取消設定)每個 <選項名稱> 選項 結束狀態: 如果 <選項名稱> 選項被啟用則回傳成功;如果是 無效的選項或 <選項名稱> 被停用則失敗。
2020-11-10
設定和取消設定 shell 選項。 變更每個 shell <選項名稱> 的設定。不帶選項參數時, 顯示每個提供的 <選項名稱> 或所有 shell 選項 (如果沒有 傳入任何 <選項名稱>) 和是否每個都有設定到的指示。 選項: -o 限制 <選項名稱> 為定義用於「set -o」的選項 -p 印出每個 shell 選項並標註它的狀態。 -q 抑制輸出 -s 啟用(設定)每個 <選項名稱> 選項 -u 停用(取消設定)每個 <選項名稱> 選項 退出狀態: 如果 <選項名稱> 選項被啟用則回傳成功;如果是 無效的選項或 <選項名稱> 被停用則失敗。
2019-02-23
設定和取消設定 shell 選項。 變更每個 shell <選項名稱> 的設定。不帶選項引數時, 顯示每個提供的 <選項名稱> 或所有 shell 選項 (如果沒有 傳入任何 <選項名稱>) 和是否每個都有設定到的指示。 選項: -o 限制 OPTNAME 為定義用於「set -o」的選項 -p 印出每個 shell 選項並標註它的狀態。 -q 抑制輸出 -s 啟用(設定)每個 OPTNAME 選項 -u 停用(取消設定)每個 OPTNAME 選項 退出狀態: 如果 OPTNAME 選項被啟用則回傳成功;如果是 無效的選項或 OPTNAME 被停用則失敗。
589.
Formats and prints ARGUMENTS under control of the FORMAT. Options: -v var assign the output to shell variable VAR rather than display it on the standard output FORMAT is a character string which contains three types of objects: plain characters, which are simply copied to standard output; character escape sequences, which are converted and copied to the standard output; and format specifications, each of which causes printing of the next successive argument. In addition to the standard format specifications described in printf(1), printf interprets: %b expand backslash escape sequences in the corresponding argument %q quote the argument in a way that can be reused as shell input %(fmt)T output the date-time string resulting from using FMT as a format string for strftime(3) The format is re-used as necessary to consume all of the arguments. If there are fewer arguments than the format requires, extra format specifications behave as if a zero value or null string, as appropriate, had been supplied. Exit Status: Returns success unless an invalid option is given or a write or assignment error occurs.
2020-11-10
在 <格式> 的控制下格式化並印出 <參數>。 選項: -v var 將輸出指派給 shell 變數 VAR 而不顯示在標準輸出上 <格式> 是包含三種物件的字串:簡單地被複製到標準輸出的普通字元; 被變換之後複製到標準輸入的逸出字元;以及每個都會影響到下個參數的印出格式化規格。 在 printf(1) 中描述的標準控制規格之外,printf 解析: %b 擴充套件對應參數中的反斜線逸出序列 %q 以可做為 shell 輸入的格式引用參數 %(fmt)T 以 FMT 為提供 strftime(3) 的格式輸出日期與時間字串 退出狀態: 回傳成功,除非使用了無效的選項或者發生寫入或指派錯誤。
2019-02-23
在 FORMAT 的控制下格式化並印出 ARGUMENTS 引數。 選項: -v var 將輸出指派給 shell 變數 VAR 而不顯示在標準輸出上 FORMAT 是包含三種物件的字串:簡單地被複製到標準輸出的普通字元; 被變換之後複製到標準輸入的逸出字元;以及每個都會影響到下個引數的印出格式化規格。 在 printf(1) 中描述的標準控制規格之外,printf 解析: 、 %b 擴充套件對應引數中的反斜線逸出序列 %q 以可做為 shell 輸入的格式引用引數 %(fmt)T 以 FMT 為提供 strftime(3) 的格式輸出日期與時間字串 退出狀態: 回傳成功,除非使用了無效的選項或者發生寫入或指派錯誤。
590.
Specify how arguments are to be completed by Readline. For each NAME, specify how arguments are to be completed. If no options are supplied, existing completion specifications are printed in a way that allows them to be reused as input. Options: -p print existing completion specifications in a reusable format -r remove a completion specification for each NAME, or, if no NAMEs are supplied, all completion specifications -D apply the completions and actions as the default for commands without any specific completion defined -E apply the completions and actions to "empty" commands -- completion attempted on a blank line -I apply the completions and actions to the initial (usually the command) word When completion is attempted, the actions are applied in the order the uppercase-letter options are listed above. If multiple options are supplied, the -D option takes precedence over -E, and both take precedence over -I. Exit Status: Returns success unless an invalid option is supplied or an error occurs.
2022-08-25
指定 readline 如何完成讀取引數。 指定每一個 <名稱> 如何完成讀取參數。如果不指定選項, 現有的自動完成規格會以可以重新作為輸入使用的格式輸出。 選項: -p 以可重用的格式輸出現有的自動完成規格。 -r 移除每個 <名稱> 的自動完成規格。若未指定 <名稱> 則移除所有自動完成規格。 -D 對於沒有自動完成規格定義的命令,設定預設的自動完成動作 -E 對於「empty」指令——嘗試對空白列進行自動完成——套用自動完成和動作。 -I 套用自動完成和動作到首個(通常是命令)單字 發起自動完成嘗試時,將依上述大寫字母選項的順序進行動作。若傳入了多個選項, -D 選項優先於 -E 選項,而兩者優先於 -I 選項。 結束狀態: 回傳成功,除非使用了無效的選項或者錯誤發生。
591.
Display possible completions depending on the options. Intended to be used from within a shell function generating possible completions. If the optional WORD argument is supplied, matches against WORD are generated. Exit Status: Returns success unless an invalid option is supplied or an error occurs.
2022-08-25
依據選項顯示可能的自動完成建議。 意圖在能產生可能的自動完成 shell 函數內部使用。 如果提供了可選的 WORD 參數,則產生按照 WORD 進行的符合。 結束狀態: 除非使用了無效選項或者錯誤發生,否則回傳成功。
2020-11-10
依據選項顯示可能的補完。 意圖在能產生可能的補完 shell 函數內部使用。 如果提供了可選的 WORD 參數,則產生按照 WORD 進行的符合。 退出狀態: 除非使用了無效選項或者錯誤發生,否則回傳成功。
592.
Modify or display completion options. Modify the completion options for each NAME, or, if no NAMEs are supplied, the completion currently being executed. If no OPTIONs are given, print the completion options for each NAME or the current completion specification. Options: -o option Set completion option OPTION for each NAME -D Change options for the "default" command completion -E Change options for the "empty" command completion -I Change options for completion on the initial word Using `+o' instead of `-o' turns off the specified option. Arguments: Each NAME refers to a command for which a completion specification must have previously been defined using the `complete' builtin. If no NAMEs are supplied, compopt must be called by a function currently generating completions, and the options for that currently-executing completion generator are modified. Exit Status: Returns success unless an invalid option is supplied or NAME does not have a completion specification defined.
2022-08-25
修改或顯示自動完成選項。 修改每個 <名稱> 的自動完成選項,或如果沒有提供 <名稱>,執行目前的自動完成。 如果不帶選項,印出每個 <名稱> 的自動完成選項或目前的自動完成規格。 選項: -o option 為每個 <名稱> 設定自動完成選項 option -D 為「default」指令自動完成變更選項 -E 為「empty」指令自動完成變更選項 -I 為首單詞上的自動完成變更選項 使用「+o」而不是「-o」可以關閉指定的選項。 參數: 每個 <名稱> 都對應一個之前以藉由「complete」內建定義了自動完成規格的 指令。如果不提供 <名稱>,目前產生自動完成的函數必須呼叫 compopt, 並且目前執行的自動完成產生器選項會被修改。 結束狀態: 回傳成功,除非使用了無效的選項或者 <名稱> 沒有定義自動完成規格。
2020-11-10
修改或顯示補完選項。 修改每個 <名稱> 的補完選項,或如果沒有提供 <名稱>,執行目前的補完。 如果不帶選項,印出每個 <名稱> 的補完選項或目前的補完規格。 選項: -o option 為每個 <名稱> 設定補完選項 option -D 為「default」指令補完變更選項 -E 為「empty」指令補完變更選項 -I 為首單詞上的補完變更選項 使用「+o」而不是「-o」可以關閉指定的選項。 參數: 每個 <名稱> 都對應一個之前以藉由「complete」內建定義了補完規格的 指令。如果不提供 <名稱>,目前產生補完的函數必須呼叫 compopt, 並且目前執行的補完產生器選項會被修改。 退出狀態: 回傳成功,除非使用了無效的選項或者 <名稱> 沒有定義補完規格。
2019-02-23
修改或顯示補完選項。 修改每個 NAME 名稱的補完選項,或如果沒有提供 NAME 名稱,執行當前的補完。 如果不帶選項,印出每個 NAME 名稱的補完選項或當前的補完規格。 選項: -o option 為每個 NAME 名稱設定補完選項 option -D 為「default」命令補完變更選項 -E 為「empty」命令補完變更選項 -I 為首單詞上的補完變更選項 使用「+o」而不是「-o」可以關閉指定的選項。 引數: 每個 NAME 名稱都對應一個之前以藉由「complete」內建定義了補完規格的 命令。如果不提供 NAME 名稱,當前生成補完的函數必須呼叫 compopt, 並且當前執行的補完生成器選項會被修改。 退出狀態: 回傳成功,除非使用了無效的選項或者 NAME 名稱沒有定義補完規格。
593.
Read lines from the standard input into an indexed array variable. Read lines from the standard input into the indexed array variable ARRAY, or from file descriptor FD if the -u option is supplied. The variable MAPFILE is the default ARRAY. Options: -d delim Use DELIM to terminate lines, instead of newline -n count Copy at most COUNT lines. If COUNT is 0, all lines are copied -O origin Begin assigning to ARRAY at index ORIGIN. The default index is 0 -s count Discard the first COUNT lines read -t Remove a trailing DELIM from each line read (default newline) -u fd Read lines from file descriptor FD instead of the standard input -C callback Evaluate CALLBACK each time QUANTUM lines are read -c quantum Specify the number of lines read between each call to CALLBACK Arguments: ARRAY Array variable name to use for file data If -C is supplied without -c, the default quantum is 5000. When CALLBACK is evaluated, it is supplied the index of the next array element to be assigned and the line to be assigned to that element as additional arguments. If not supplied with an explicit origin, mapfile will clear ARRAY before assigning to it. Exit Status: Returns success unless an invalid option is given or ARRAY is readonly or not an indexed array.
2022-08-25
從標準輸入讀取列到索引陣列變數中。 從標準輸入讀取列到索引陣列變數 ARRAY 中,或者如果使用了 -u 選項, 從檔案描述符 FD 中讀取。MAPFILE 變數是預設的 ARRAY 變數。 選項: -d delim 使用 DELIM 取代換行符號來斷行 -n count 最多複製 COUNT 列,如果 COUNT 為 0,則複製所有列。 -O origin 從索引 ORIGIN 開始 指派給 ARRAY 變數。預設索引是 0。 -s count 丟棄最先讀取的 COUNT 列。 -t 從讀取的每列末尾刪除一個換列符。 -u fd 從檔案描述符 FD 中讀取列而不是標準輸入。 -C callback 每 QUANTUM 次讀列之後對 CALLBACK 回呼求值。 -c quantum 定義每次呼叫 CALLBACK 回呼之間讀取的列數。 參數: ARRAY 儲存資料使用的陣列變數 如果使用了 -C 而沒有 -c,預設的定量是 5000。當對 CALLBACK 求值時, 下一個將被指派的陣列元素索引做為額外參數被傳遞。 如果沒有顯式指定起始索引,mapfile 將在指派前清空 ARRAY 變數。 結束狀態: 回傳成功,除非使用了無效的選項,或者 ARRAY 變數唯讀或不是索引陣列。
2020-11-10
從標準輸入讀取列到索引陣列變數中。 從標準輸入讀取列到索引陣列變數 ARRAY 中,或者如果使用了 -u 選項, 從檔案描述符 FD 中讀取。MAPFILE 變數是預設的 ARRAY 變數。 選項: -d delim 使用 DELIM 取代換行符號來斷行 -n count 最多複製 COUNT 列,如果 COUNT 為 0,則複製所有列。 -O origin 從索引 ORIGIN 開始 指派給 ARRAY 變數。預設索引是 0。 -s count 丟棄最先讀取的 COUNT 列。 -t 從讀取的每列末尾刪除一個換列符。 -u fd 從檔案描述符 FD 中讀取列而不是標準輸入。 -C callback 每 QUANTUM 次讀列之後對 CALLBACK 回呼求值。 -c quantum 定義每次呼叫 CALLBACK 回呼之間讀取的列數。 參數: ARRAY 儲存資料使用的陣列變數 如果使用了 -C 而沒有 -c,預設的定量是 5000。當對 CALLBACK 求值時, 下一個將被指派的陣列元素索引做為額外參數被傳遞。 如果沒有顯式指定起始索引,mapfile 將在指派前清空 ARRAY 變數。 退出狀態: 回傳成功,除非使用了無效的選項,或者 ARRAY 變數唯讀或不是索引陣列。
2019-02-23
從標準輸入讀取列到索引陣列變數中。 從標準輸入讀取列到索引陣列變數 ARRAY 中,或者如果使用了 -u 選項, 從檔案描述符 FD 中讀取。MAPFILE 變數是預設的 ARRAY 變數。 選項: -d delim 使用 DELIM 取代換行符號來斷行 -n count 最多複製 COUNT 列,如果 COUNT 為 0,則複製所有列。 -O origin 從索引 ORIGIN 開始 指派給 ARRAY 變數。預設索引是 0。 -s count 丟棄最先讀取的 COUNT 列。 -t 從讀取的每列末尾刪除一個換列符。 -u fd 從檔案描述符 FD 中讀取列而不是標準輸入。 -C callback 每 QUANTUM 次讀列之後對 CALLBACK 回呼求值。 -c quantum 定義每次呼叫 CALLBACK 回呼之間讀取的列數。 引數: ARRAY 儲存資料使用的陣列變數 如果使用了 -C 而沒有 -c,預設的定量是 5000。當對 CALLBACK 求值時, 下一個將被指派的陣列元素索引做為額外引數被傳遞。 如果沒有顯式指定起始索引,mapfile 將在指派前清空 ARRAY 變數。 退出狀態: 回傳成功,除非使用了無效的選項,或者 ARRAY 變數唯讀或不是索引陣列。