Translations by Wenbin Lv

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

201238 of 238 results
449.
time [-p] pipeline
2022-08-25
time [-p] 流水线
450.
case WORD in [PATTERN [| PATTERN]...) COMMANDS ;;]... esac
2022-08-25
case 词语 in [模式 [| 模式]...) 命令 ;;]... esac
457.
job_spec [&]
2022-08-25
任务说明符 [&]
474.
Exit for, while, or until loops. Exit a FOR, WHILE or UNTIL loop. If N is specified, break N enclosing loops. Exit Status: The exit status is 0 unless N is not greater than or equal to 1.
2022-08-25
退出 for、while 或 until 循环。 退出一个 FOR、WHILE 或 UNTIL 循环。如果指定了 N,则跳出 从里往外数共 N 重循环。 退出状态: 退出状态为 0,除非 N 不大于等于 1。
475.
Resume for, while, or until loops. Resumes the next iteration of the enclosing FOR, WHILE or UNTIL loop. If N is specified, resumes the Nth enclosing loop. Exit Status: The exit status is 0 unless N is not greater than or equal to 1.
2022-08-25
继续 for、while 或 until 循环。 继续进行当前 FOR、WHILE 或 UNTIL 循环的下一次迭代。 如果指定了 N, 则继续进行从里往外数第 N 重循环的下一次迭代。 退出状态: 退出状态为 0,除非 N 不大于等于 1。
477.
Return the context of the current subroutine call. Without EXPR, returns "$line $filename". With EXPR, returns "$line $subroutine $filename"; this extra information can be used to provide a stack trace. The value of EXPR indicates how many call frames to go back before the current one; the top frame is frame 0. Exit Status: Returns 0 unless the shell is not executing a shell function or EXPR is invalid.
2022-08-25
返回当前子例程调用的上下文。 不带有 <表达式> 时,返回 "$line $filename"。带有 <表达式> 时, 返回 "$line $subroutine $filename";这个额外的信息可以用来提供 栈跟踪 (stack trace)。 <表达式> 的值表示从当前调用帧需要回去多少个调用帧;栈顶帧是第 0 帧。 退出状态: 返回 0,除非 shell 不在执行一个 shell 函数,或者 <表达式> 无效。
481.
Return a successful result. Exit Status: Always succeeds.
2022-08-25
返回一个成功的结果。 退出状态: 总是成功。
488.
Write arguments to the standard output. Display the ARGs on the standard output followed by a newline. Options: -n do not append a newline Exit Status: Returns success unless a write error occurs.
2022-08-25
将参数写到标准输出。 在标准输出上显示 <参数>,后面跟一个换行。 选项: -n 不要追加换行 退出状态: 返回成功,除非有写入错误发生。
489.
Enable and disable shell builtins. Enables and disables builtin shell commands. Disabling allows you to execute a disk command which has the same name as a shell builtin without using a full pathname. Options: -a print a list of builtins showing whether or not each is enabled -n disable each NAME or display a list of disabled builtins -p print the list of builtins in a reusable format -s print only the names of Posix `special' builtins Options controlling dynamic loading: -f Load builtin NAME from shared object FILENAME -d Remove a builtin loaded with -f Without options, each NAME is enabled. To use the `test' found in $PATH instead of the shell builtin version, type `enable -n test'. Exit Status: Returns success unless NAME is not a shell builtin or an error occurs.
2022-08-25
启用和禁用 shell 内建。 启用和禁用 shell 的内建命令。禁用命令使您能够执行和内建 命令同名的磁盘上的命令,而无须使用完整的路径名。 选项: -a 打印内建列表,并显示其中每一个是否启用 -n 禁用每一个 <名称> 或者显示被禁用的内建的列表 -p 以可重用的格式打印内建列表 -s 仅打印 Posix "特殊" 内建的名称 控制动态加载的选项: -f 从共享对象 <文件名> 中加载 <名称> 内建 -d 删除以 -f 选项加载的内建 不带选项时,启用每一个 <名称>。 要使用 $PATH 中找到的 "test" 而不是 shell 内建的版本, 请输入 "enable -n test"。 退出状态: 返回成功,除非 <名称> 不是一个 shell 内建,或者有错误发生。
490.
Execute arguments as a shell command. Combine ARGs into a single string, use the result as input to the shell, and execute the resulting commands. Exit Status: Returns exit status of command or success if command is null.
2022-08-25
将参数作为 shell 命令执行。 将 <参数> 组合成一个字符串,用结果作为 shell 的输入,并执行得到的命令。 退出状态: 返回命令的退出状态,或者在命令为空的情况下返回成功。
493.
Exit the shell. Exits the shell with a status of N. If N is omitted, the exit status is that of the last command executed.
2022-08-25
退出 shell。 退出 shell,退出状态为 N。如果 N 被省略,则退出状态为最后一个执行的 命令的退出状态。
494.
Exit a login shell. Exits a login shell with exit status N. Returns an error if not executed in a login shell.
2022-08-25
退出一个登录 shell。 退出一个登录 shell,退出状态为 N。如果不在登录 shell 中执行, 则返回一个错误。
495.
Display or execute commands from the history list. fc is used to list or edit and re-execute commands from the history list. FIRST and LAST can be numbers specifying the range, or FIRST can be a string, which means the most recent command beginning with that string. Options: -e ENAME select which editor to use. Default is FCEDIT, then EDITOR, then vi -l list lines instead of editing -n omit line numbers when listing -r reverse the order of the lines (newest listed first) With the `fc -s [pat=rep ...] [command]' format, COMMAND is re-executed after the substitution OLD=NEW is performed. A useful alias to use with this is r='fc -s', so that typing `r cc' runs the last command beginning with `cc' and typing `r' re-executes the last command. Exit Status: Returns success or status of executed command; non-zero if an error occurs.
2022-08-25
从历史列表中显示或者执行命令。 fc 可用于从历史列表中列出命令,或者编辑并重新执行命令。 <起始> 和 <终止> 可以是用来指定范围的数字,或者 <起始> 可以是 字符串,表示以这个字符串打头的最近的一个命令。 选项: -e 编辑器名 选择使用哪个编辑器。默认使用 FCEDIT,然后 是 EDITOR,然后是 vi -l 列出行而不编辑 -n 列举时省略行号 -r 反转行的顺序(新的在前) 使用 "fc -s [模式=替换串 ...] [命令]" 的格式,<命令> 会在完成 <模式>=<替换串> 的替换之后被重新执行。 r='fc -s' 是一个有用的别名,这样的话输入 "r cc" 会执行最后一个以 "cc" 开头的命令,输入 "r" 会重新执行最后一个命令。 退出状态: 返回成功,或者执行的命令的状态;如果有错误发生,则返回非零。
496.
Move job to the foreground. Place the job identified by JOB_SPEC in the foreground, making it the current job. If JOB_SPEC is not present, the shell's notion of the current job is used. Exit Status: Status of command placed in foreground, or failure if an error occurs.
2022-08-25
将任务移至前台。 将以 <任务说明符> 指定的任务放至前台,使其成为当前任务。 如果没有给出 <任务说明符>,shell 观念中的当前任务将会被使用。 退出状态: 放至前台的命令的状态,或者当错误发生时则返回失败。
497.
Move jobs to the background. Place the jobs identified by each JOB_SPEC in the background, as if they had been started with `&'. If JOB_SPEC is not present, the shell's notion of the current job is used. Exit Status: Returns success unless job control is not enabled or an error occurs.
2022-08-25
将任务移至后台。 将以 <任务说明符> 指定的任务放至后台,就像它们是带 "&" 启动的一样。 如果没有给出 <任务说明符>,shell 观念中的当前任务将会被使用。 退出状态: 返回成功,除非任务控制没有启用,或者有错误发生。
504.
Evaluate arithmetic expressions. Evaluate each ARG as an arithmetic expression. Evaluation is done in fixed-width integers with no check for overflow, though division by 0 is trapped and flagged as an error. The following list of operators is grouped into levels of equal-precedence operators. The levels are listed in order of decreasing precedence. id++, id-- variable post-increment, post-decrement ++id, --id variable pre-increment, pre-decrement -, + unary minus, plus !, ~ logical and bitwise negation ** exponentiation *, /, % multiplication, division, remainder +, - addition, subtraction <<, >> left and right bitwise shifts <=, >=, <, > comparison ==, != equality, inequality & bitwise AND ^ bitwise XOR | bitwise OR && logical AND || logical OR expr ? expr : expr conditional operator =, *=, /=, %=, +=, -=, <<=, >>=, &=, ^=, |= assignment Shell variables are allowed as operands. The name of the variable is replaced by its value (coerced to a fixed-width integer) within an expression. The variable need not have its integer attribute turned on to be used in an expression. Operators are evaluated in order of precedence. Sub-expressions in parentheses are evaluated first and may override the precedence rules above. Exit Status: If the last ARG evaluates to 0, let returns 1; let returns 0 otherwise.
2022-08-25
对算术表达式进行求值。 将每个 <参数> 作为算术表达式进行求值。求值在固定宽度的整数中完成, 没有溢出检测,不过除以 0 的异常会被捕获,并且会报一个错误。下面的运算符 列表中,同一行的运算符的优先级相等。列表按照优先级从高到低进行排序。 id++, id-- 变量的后缀自增、后缀自减 ++id, --id 变量的前缀自增、前缀自减 -, + 一元负号、正号 !, ~ 逻辑和按位取反 ** 指数 *, /, % 乘法、除法、取余数 +, - 加法、减法 <<, >> 按位左移、按位右移 <=, >=, <, > 比较 ==, != 等于,不等于 & 按位与 ^ 按位异或 | 按位或 && 逻辑与 || 逻辑或 expr ? expr : expr 条件运算符 =, *=, /=, %=, +=, -=, <<=, >>=, &=, ^=, |= 赋值 shell 变量允许作为操作数。变量的名称会被它的值替代(强制转换为固定 宽度的整数)。变量不需要打开 "整数" 属性就可以在表达式中使用。 运算符按照优先级顺序进行求值。括号中的子表达式将最先求值, 并可以覆盖上述优先级规则。 退出状态: 如果最后一个 <参数> 求值结果为 0,则 let 返回 1; 否则 let 返回 0。
506.
Return from a shell function. Causes a function or sourced script to exit with the return value specified by N. If N is omitted, the return status is that of the last command executed within the function or script. Exit Status: Returns N, or failure if the shell is not executing a function or script.
2022-08-25
从一个 shell 函数返回。 使一个函数或者被 source 的脚本退出,返回值为 N。如果 N 被 省略,则返回状态为函数或脚本中最后一个被执行的命令的返回状态。 退出状态: 返回 N,或者如果 shell 不在执行一个函数或脚本时,返回失败。
509.
Set export attribute for shell variables. Marks each NAME for automatic export to the environment of subsequently executed commands. If VALUE is supplied, assign VALUE before exporting. Options: -f refer to shell functions -n remove the export property from each NAME -p display a list of all exported variables and functions An argument of `--' disables further option processing. Exit Status: Returns success unless an invalid option is given or NAME is invalid.
2022-08-25
为 shell 变量设定 "导出" 属性。 标记每个 <名称>,将其自动导出到后续执行的命令的环境。 如果提供了 <值>,则导出前将其赋值为 <值>。 选项: -f 所指代的是 shell 函数 -n 删除每个 <名称> 的 "导出" 属性 -p 显示所有导出的变量和函数的列表 参数 "--" 禁用后续的选项处理。 退出状态: 返回成功,除非使用了无效的选项,或者 <名称> 无效。
511.
Shift positional parameters. Rename the positional parameters $N+1,$N+2 ... to $1,$2 ... If N is not given, it is assumed to be 1. Exit Status: Returns success unless N is negative or greater than $#.
2022-08-25
移位位置参数。 将位置参数 $N+1,$N+2 ... 重命名为 $1,$2 ...。如果没有给定 N, 则假定 N 为 1。 退出状态: 返回成功,除非 N 为负数或者大于 $#。
512.
Execute commands from a file in the current shell. Read and execute commands from FILENAME in the current shell. The entries in $PATH are used to find the directory containing FILENAME. If any ARGUMENTS are supplied, they become the positional parameters when FILENAME is executed. Exit Status: Returns the status of the last command executed in FILENAME; fails if FILENAME cannot be read.
2022-08-25
在当前 shell 中执行一个文件中的命令。 在当前 shell 中读取并执行 <文件名> 中的命令。将使用 $PATH 变量中的 条目寻找包含 <文件名> 的目录。如果提供了 <参数>,则它们将成为 <文件名> 执行时的位置参数。 退出状态: 返回 <文件名> 中最后一个被执行的命令的状态;如果无法读取 <文件名>, 则返回失败。
513.
Suspend shell execution. Suspend the execution of this shell until it receives a SIGCONT signal. Unless forced, login shells cannot be suspended. Options: -f force the suspend, even if the shell is a login shell Exit Status: Returns success unless job control is not enabled or an error occurs.
2022-08-25
挂起 shell 的执行。 挂起此 shell 的执行,直到它收到 SIGCONT 信号。 登录 shell 不可以被挂起,除非强制执行。 选项: -f 强制挂起,即使此 shell 是登录 shell。 退出状态: 返回成功,除非没有启用任务控制,或者有错误发生。
515.
Evaluate conditional expression. This is a synonym for the "test" builtin, but the last argument must be a literal `]', to match the opening `['.
2022-08-25
对条件表达式进行求值。 同 "test" 内建,但是最后一个参数必须是字符 "]",以匹配起始的 "["。
516.
Display process times. Prints the accumulated user and system times for the shell and all of its child processes. Exit Status: Always succeeds.
2022-08-25
显示进程时间。 打印此 shell 及其所有子进程的累计用户和系统时间。 退出状态: 总是成功。
517.
Trap signals and other events. Defines and activates handlers to be run when the shell receives signals or other conditions. ARG is a command to be read and executed when the shell receives the signal(s) SIGNAL_SPEC. If ARG is absent (and a single SIGNAL_SPEC is supplied) or `-', each specified signal is reset to its original value. If ARG is the null string each SIGNAL_SPEC is ignored by the shell and by the commands it invokes. If a SIGNAL_SPEC is EXIT (0) ARG is executed on exit from the shell. If a SIGNAL_SPEC is DEBUG, ARG is executed before every simple command. If a SIGNAL_SPEC is RETURN, ARG is executed each time a shell function or a script run by the . or source builtins finishes executing. A SIGNAL_SPEC of ERR means to execute ARG each time a command's failure would cause the shell to exit when the -e option is enabled. If no arguments are supplied, trap prints the list of commands associated with each signal. Options: -l print a list of signal names and their corresponding numbers -p display the trap commands associated with each SIGNAL_SPEC Each SIGNAL_SPEC is either a signal name in <signal.h> or a signal number. Signal names are case insensitive and the SIG prefix is optional. A signal may be sent to the shell with "kill -signal $$". Exit Status: Returns success unless a SIGSPEC is invalid or an invalid option is given.
2022-08-25
为信号和其他事件设置陷阱。 定义并激活当 shell 接收到信号或满足其他条件时执行的处理程序。 <参数> 是当 shell 接收到 <信号说明符> 时读取和执行的命令。如果 没有指定 <参数>(并且只给出一个 <信号说明符>)或者 <参数> 为 "-", 则每一个指定的信号会被重置为原始值。如果 <参数> 是空字符串,则每一个 <信号说明符> 会被 shell 和它启动的命令忽略。 如果一个 <信号说明符> 是 EXIT (0),则 <参数> 会在 shell 退出时被执行。 如果一个 <信号说明符> 是 DEBUG,则 <参数> 会在每一个简单命令之前执行。 如果一个 <信号说明符> 是 RETURN,则 <参数> 会在每一个 shell 函数或者 通过 . 或 source 内建执行的脚本执行结束时被执行。如果一个 <信号说明符> 是 ERR,则 <参数> 会在命令返回失败,并且假如启用了 -e 选项,本次失败就 会导致 shell 退出的情况下被执行。 如果不提供参数,trap 打印与每一个信号相关联的命令列表。 选项: -l 打印信号名称以及和它们对应的编号的列表 -p 打印与每个 <信号说明符> 相关联的陷阱命令 每一个 <信号说明符> 可以是 <signal.h> 中的信号名称或者信号编号。信号名称 是大小写敏感的,并且 SIG 前缀是可选的。可以使用 "kill -信号 $$" 给 shell 发送信号。 退出状态: 返回成功,除非使用了无效的 <信号说明符>,或者无效的选项。
520.
Display or set file mode mask. Sets the user file-creation mask to MODE. If MODE is omitted, prints the current value of the mask. If MODE begins with a digit, it is interpreted as an octal number; otherwise it is a symbolic mode string like that accepted by chmod(1). Options: -p if MODE is omitted, output in a form that may be reused as input -S makes the output symbolic; otherwise an octal number is output Exit Status: Returns success unless MODE is invalid or an invalid option is given.
2022-08-25
显示或设定文件模式掩码。 设定用户文件创建掩码为 <模式>。如果省略 <模式>,则打印当前掩码的值。 如果 <模式> 以数字开头,则按照八进制数进行解释;否则视为一个 chmod(1) 可接受的符号模式串。 选项: -p 如果省略 <模式>,以可重用作输入的格式输出 -S 以符号形式输出,否则以八进制数格式输出 退出状态: 返回成功,除非使用了无效的 <模式> 或者选项。
523.
Execute commands for each member in a list. The `for' loop executes a sequence of commands for each member in a list of items. If `in WORDS ...;' is not present, then `in "$@"' is assumed. For each element in WORDS, NAME is set to that element, and the COMMANDS are executed. Exit Status: Returns the status of the last command executed.
2022-08-25
为列表中的每个成员执行命令。 "for" 循环为列表中的每个成员执行一系列的命令。 如果没有 "in 词语 ...;" ,则假定使用 `in "$@"'。对于 <词语> 中的 每个元素,<名称> 被设定为该元素,然后执行 <命令>。 退出状态: 返回最后执行的命令的状态。
524.
Arithmetic for loop. Equivalent to (( EXP1 )) while (( EXP2 )); do COMMANDS (( EXP3 )) done EXP1, EXP2, and EXP3 are arithmetic expressions. If any expression is omitted, it behaves as if it evaluates to 1. Exit Status: Returns the status of the last command executed.
2022-08-25
算术 for 循环。 等价于 (( 表达式1 )) while (( 表达式2 )); do 命令 (( 表达式3 )) done <表达式1>、<表达式2> 和 <表达式3> 都是算术表达式。如果省略任何表达式, 则等价于使用了求值结果为 1 的表达式。 退出状态: 返回最后执行的命令的状态。
525.
Select words from a list and execute commands. The WORDS are expanded, generating a list of words. The set of expanded words is printed on the standard error, each preceded by a number. If `in WORDS' is not present, `in "$@"' is assumed. The PS3 prompt is then displayed and a line read from the standard input. If the line consists of the number corresponding to one of the displayed words, then NAME is set to that word. If the line is empty, WORDS and the prompt are redisplayed. If EOF is read, the command completes. Any other value read causes NAME to be set to null. The line read is saved in the variable REPLY. COMMANDS are executed after each selection until a break command is executed. Exit Status: Returns the status of the last command executed.
2022-08-25
从列表中选取词并且执行命令。 <词语> 被展开,生成一个词语列表。展开后的词语集合被打印到 标准错误,每个词语前面打印一个数字。如果没有 "in 词语" ,则假定 使用 `in "$@"'。然后,会显示一个 PS3 提示符,并且从标准输入读取 一行。如果该行是所显示的词之一所对应的数字,则 <名称> 被设定为 相应的词。如果该行为空,则会重新显示 <词语> 和提示符。如果读到了 EOF,则命令完成。读入任何其他的值会导致 <名称> 变量被设定为空。 读入的行被存放在变量 REPLY 中。<命令> 会在每次选择之后被执行, 直到执行到 break 命令。 退出状态: 返回最后一个执行的命令的状态。
526.
Report time consumed by pipeline's execution. Execute PIPELINE and print a summary of the real time, user CPU time, and system CPU time spent executing PIPELINE when it terminates. Options: -p print the timing summary in the portable Posix format The value of the TIMEFORMAT variable is used as the output format. Exit Status: The return status is the return status of PIPELINE.
2022-08-25
报告流水线执行消耗的时间。 执行 <流水线> 并且打印 <流水线> 终止时消耗的真实时间、用户 CPU 时间 和系统 CPU 时间的总结。 选项: -p 用可移植的 POSIX 格式打印用时总结。 使用 TIMEFORMAT 变量的值作为输出格式。 退出状态: 返回状态是 <流水线> 的返回状态。
527.
Execute commands based on pattern matching. Selectively execute COMMANDS based upon WORD matching PATTERN. The `|' is used to separate multiple patterns. Exit Status: Returns the status of the last command executed.
2022-08-25
基于模式匹配来执行命令。 根据和 <词语> 匹配的 <模式> ,选择性地执行 <命令>。 "|" 用于分隔多个模式。 退出状态: 返回最后一个执行的命令的状态。
528.
Execute commands based on conditional. The `if COMMANDS' list is executed. If its exit status is zero, then the `then COMMANDS' list is executed. Otherwise, each `elif COMMANDS' list is executed in turn, and if its exit status is zero, the corresponding `then COMMANDS' list is executed and the if command completes. Otherwise, the `else COMMANDS' list is executed, if present. The exit status of the entire construct is the exit status of the last command executed, or zero if no condition tested true. Exit Status: Returns the status of the last command executed.
2022-08-25
根据条件执行命令。 执行 "if 命令" 列表。如果退出状态为零,则执行 "then 命令" 列表。 否则按顺序执行每个 "elif 命令" 列表,如果某一个的退出状态为零,则执行 对应的 "then 命令" 列表,然后 if 命令完成。否则,执行 "else 命令" 列表(如果有的话)。整个结构的退出状态是最后一个执行的命令的状态, 或者如果没有一个条件的测试结果为真,则退出状态为零。 退出状态: 返回最后一个执行的命令的状态。
532.
Define shell function. Create a shell function named NAME. When invoked as a simple command, NAME runs COMMANDs in the calling shell's context. When NAME is invoked, the arguments are passed to the function as $1...$n, and the function's name is in $FUNCNAME. Exit Status: Returns success unless NAME is readonly.
2022-08-25
定义 shell 函数。 创建一个名为 <名称> 的 shell 函数。当作为一个简单命令被调用时, <名称> 在调用它的 shell 的上下文中执行 <命令>。当 <名称> 被调用时, 传递给函数的参数储存在 $1...$n 中,函数名储存在 $FUNCNAME 中。 退出状态: 返回成功,除非 <名称> 为只读。
533.
Group commands as a unit. Run a set of commands in a group. This is one way to redirect an entire set of commands. Exit Status: Returns the status of the last command executed.
2022-08-25
将命令组合为一个单元。 运行一个组中的命令集合。这是对整个命令集合进行重定向的方法之一。 退出状态: 返回最后一个执行的命令的状态。
534.
Resume job in foreground. Equivalent to the JOB_SPEC argument to the `fg' command. Resume a stopped or background job. JOB_SPEC can specify either a job name or a job number. Following JOB_SPEC with a `&' places the job in the background, as if the job specification had been supplied as an argument to `bg'. Exit Status: Returns the status of the resumed job.
2022-08-25
在前台继续任务。 等价于向 "fg" 命令传递 <任务说明符> 参数。继续一个已停止的任务或 后台任务。<任务说明符> 可以是任务名称或任务编号。在 <任务说明符> 后加上一个 "&" 会把任务放至后台,就像该任务说明符被作为 "bg" 的参数 执行一样。 退出状态: 返回被继续的任务的状态。
536.
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
执行条件命令。 根据条件表达式 <表达式> 的求值结果返回状态 0 或 1。表达式的基本元素 与 "test" 内建相同,且可以通过下列运算符进行组合: ( 表达式 ) 返回 <表达式> 的值 ! 表达式 如果 <表达式> 为假则为真,否则为假 表达式1 && 表达式2 如果 <表达式1> 和 <表达式2> 均为真则为真, 否则为假 表达式1 || 表达式2 如果 <表达式1> 和 <表达式2> 中任何一个为真 则为真,否则为假 当使用 "==" 和 "!=" 运算符时,运算符右边的字符串被视为模式,进行模式匹配。 当使用 "=~" 运算符时,运算符右边的字符串被视为正则表达式来进行匹配。 如果 <表达式1> 足够确定整个表达式的值,运算符 && 和 || 将不会对 <表达式2> 进行求值。 退出状态: 根据 <表达式> 的值返回 0 或 1。
537.
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 收到 EOF 作为唯一输入字符后的动作。如果 该变量被设定,则它的值是 shell 退出之前在一个空行上 可以连续读取到的 EOF 数量(默认为 10)。如果未设定, EOF 标志着输入的结束。 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 用于决定哪些命令被存入历史文件的模式列表,以冒号分隔。
544.
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 函数的内部使用。 如果提供了可选的 <词语> 参数,则依据 <词语> 产生匹配。 退出状态: 返回成功,除非使用了无效的选项,或者有错误发生。
547.
Read lines from a file into an array variable. A synonym for `mapfile'.
2022-08-25
从一个文件中读取行到数组变量中。 同 "mapfile"。