美文网首页
3.5 Shell展开(Shell Expansion)

3.5 Shell展开(Shell Expansion)

作者: Doerthous | 来源:发表于2017-10-17 01:25 被阅读0次

何时


当command line(?指每一行command?)被分割成tokens后,执行shell展开

种类


注:
    展开执行的顺序如上。

展开之后


展开完成后,所有在原来的word中的quote字符被移除,除非它本身被quoted。这个过程称为引用去除

待完善

(?这段话不知道怎么理解?)
Only brace expansion, word splitting, and filename expansion can change the number
of words of the expansion; other expansions expand a single word to a single word. The
only exceptions to this are the expansions of "$@" and "${name[@]}".

相关文章

  • 3.5 Shell展开(Shell Expansion)

    何时 当command line(?指每一行command?)被分割成tokens后,执行shell展开 种类 花...

  • LinuxCommandLine -- 5 [Shell 特性]

    echo echo 将其参数送到 stdout Expansion shell 在执行命令之前,会将通配符替换成对...

  • 3.5.9 引用去除(Quote Removal)

    作用 当所有shell展开执行完毕后,所有非shell展开产生且未被quoted的字符 ‘\’,‘'’,‘"’ 将...

  • 使用adb打开android通知栏

    展开adb shell cmd statusbar expand-notifications 收起adb shel...

  • shell中三种引用方式的区分

    学习了shell的展开方式后,我认识到shell 提供了一种叫做引用的机制,来有选择地禁止不需要的展开。首先是引用...

  • Shell 的参数展开

    类型作用${变量名:=默认值}如果变量未被赋值或者赋值为空,就先对变量赋值,然后再使用该值进行展开,否则则使用变量...

  • Shell 学习

    shell 变量 shell 参数传递 shell 数组 shell 运算符 shell echo 命令 prin...

  • Shell 概述

    学习 Shell 主要包括的内容: Shell 脚本入门 Shell 变量 Shell 内置命令 Shell 运算...

  • Shell 教程

    Shell 变量 Shell 传递参数 Shell 数组 Shell 基本运算符 Shell echo 命令 Sh...

  • shell 第一天

    shell编程初识 1.1 shell编程初识 shell的定义 Shell 是命令解释器 Shell 也是...

网友评论

      本文标题:3.5 Shell展开(Shell Expansion)

      本文链接:https://www.haomeiwen.com/subject/csdruxtx.html