国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 系統 > Linux > 正文

csh,tcsh,bash,sh等shell的區別

2019-10-26 18:38:51
字體:
來源:轉載
供稿:網友

出自bash的faq,仔細看看。順便翻譯學習一下。

代碼如下:
Section C: Differences from other Unix shells
C:跟其他UNIX shells腳本的區別
C1) How does bash differ from sh, the Bourne shell?
C1) bash和 sh、Bourne shell的區別
This is a non-comprehensive list of features that differentiate bash
from the SVR4.2 shell.  The bash manual page explains these more
completely.
這時一個不全面的bash和SVR4.2 shell特性區別的列表,bash手冊解釋的更詳細
Things bash has that sh does not:
bash特有的功能:
        long invocation options
        長選項的調用
        [+-]O invocation option
        -l invocation option
        `!' reserved word to invert pipeline return value
         !嘆號保留字對管道返回的值取反
        `time' reserved word to time pipelines and shell builtins
         time保留字測試管道或內建命令耗時情況
        the `function' reserved word
        the `select' compound command and reserved word
        select復合命令和保留字
        arithmetic for command: for ((expr1 ; expr2; expr3 )); do list; done
        算術命令:for ((expr1 ; expr2; expr3 )); do list; done
        new $'...' and $"..." quoting
        新的引用方法$'...'  $"..."
        the $(...) form of command substitution
        $(...) 命令替代用法
        the $(<filename) form of command substitution, equivalent to
                $(cat filename)
        $(<filename)形式的命令的替換,相當于$(cat filename)
        the ${#param} parameter value length operator
        ${#param} 測試參數param的值的長度
        the ${!param} indirect parameter expansion operator
        ${!param} 間接參數擴展操作
        the ${!param*} prefix expansion operator
        ${!param*} 前綴擴展操作
        the ${param:offset[]} parameter substring operator
       ${param:ffset[]}參數通過偏移量截取子串操作

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 怀柔区| 象州县| 蒲城县| 阿巴嘎旗| 光山县| 石阡县| 昌平区| 怀集县| 中山市| 陕西省| 富川| 福安市| 宁南县| 天柱县| 苍山县| 青川县| 当阳市| 建德市| 察隅县| 浦江县| 太白县| 古浪县| 慈溪市| 柘荣县| 宁都县| 宜宾县| 台北县| 无极县| 瑞安市| 北流市| 德保县| 新野县| 龙海市| 沈丘县| 梅河口市| 沙雅县| 晋江市| 南靖县| 贵阳市| 高阳县| 安溪县|