Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1127542
  • 博文数量: 153
  • 博客积分: 10576
  • 博客等级: 上将
  • 技术积分: 2137
  • 用 户 组: 普通用户
  • 注册时间: 2007-12-02 21:01
文章分类

全部博文(153)

文章存档

2009年(43)

2008年(110)

分类: LINUX

2008-10-18 16:09:28

How bash Expands a Command Line

1. Split the line into words

2. Expand aliases

3. Expand curly-brace statements ({})

4. Expand tilde statements (~)

5. Expand variables ($)

6. Command-substituation ($() and ``)

7. Split the line into words again

8. Expand file globs (*, ?, [abc], etc)

9. Prepare I/O redirections (<, >)

10. Run the command!

阅读(984) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~