有七种类型的扩展: brace expansion( 花括号扩展), tilde expansion( 波浪线扩展), parameter and variable expansion(参数和变量扩展), command substitution(命令替 换), arithmetic expansion(算术扩展), word splitting(词的拆分), 和 pathname expansion(路 径扩展). 扩展的顺序是:brace expansion, tilde expans...
An crray is like a series of slots that hold values. Each slot is known as an element, and each element can be accessed via a numerical index. An array element can contain a string or a number, and you can use it just like any other variable. The indices for arrays start at 0 and...
cat(1) cat(1g) ccmake(1) ccomps(1) cd(1) cdc(1) cdda2wav(1) cdrecord(1) cdrw(1) cgi-fcgi(1) chdir(1) checkeq(1) checknr(1) chgrp(1) chgrp(1g) chkey(1) chmod(1) chmod(1g) chown(1) chown(1B) chown(1g) chroot(1g) ckdate(1) ckgid(1) ckint(1) ckitem(1) ...
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" # set variable identifying the chroot you work in (used in the prompt below) if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then debian_chroot=$(cat /etc/debian_chroot) fi # set a fancy prompt...
免费加入 已有帐号?立即登录 此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库:https://github.com/koalaman/shellcheck master v0.10.0 v0.9.0 v0.8.0 v0.7.2 v0.7.1 v0.7.0 v0.6.0 v0.5.0 v0.4.7 v0.4.6 v0.4.5 v0.4.4 ...
(nvm version default) set -l node_version (nvm version) set -l nvmrc_path (nvm_find_nvmrc) if test -n "$nvmrc_path" set -l nvmrc_node_version (nvm version (cat $nvmrc_path)) if test "$nvmrc_node_version" = "N/A" nvm install (cat $nvmrc_path) else if test "$nvmrc_node_...
Never reveal your environment variable to stdout. Avoid printing your environment variables to stdout using theenvcommand orechocommands. This is especially important, when: Using a shared resource like Ansible Automation Platform Using a shared system where others have admin access ...
(nvm version default) set -l node_version (nvm version) set -l nvmrc_path (nvm_find_nvmrc) if test -n "$nvmrc_path" set -l nvmrc_node_version (nvm version (cat $nvmrc_path)) if test "$nvmrc_node_version" = "N/A" nvm install (cat $nvmrc_path) else if test "$nvmrc_node_...
命令替換 $(cat file) 可以用等價但是更快的方法 $(< file) 代替。 當使用舊式的反引號 ("``") 替換形式時,反斜槓只有其字面意義,除非 後面是 $, `, 或者是 \. 第一個前面沒有反 斜槓的反引號將結束命令替換。當使用 $(command) 形式時,括號中所有字元組成了整個命令;沒有被特殊處理的字 元。
命令替換 $(cat file) 可以用等價但是更快的方法 $(< file) 代替。 當使用舊式的反引號 ("``") 替換形式時,反斜槓只有其字面意義,除非 後面是 $, `, 或者是 \. 第一個前面沒有反 斜槓的反引號將結束命令替換。當使用 $(command) 形式時,括號中所有字符組成了整個命令;沒有被特殊處理的字 符。