
Shell
瑜珈山神
这个作者很懒,什么都没留下…
展开
-
shFlags Introduction
https://github.com/kward/shflags/wiki/Documentation12xIntroductionThis is the documentation for the shFlags 1.2.x release series.At its core, shFlags is simply a library that you include转载 2016-09-10 14:46:02 · 1198 阅读 · 0 评论 -
shell中exec解析
exec和source都属于bash内部命令(builtins commands),在bash下输入man exec或man source可以查看所有的内部命令信息。bash shell的命令分为两类:外部命令和内部命令。外部命令是通过系统调用或独立的程序实现的,如sed、awk等等。内部命令是由特殊的文件格式(.def)所实现,如cd、history、exec等等。 在说明exe和so转载 2016-09-10 15:02:49 · 565 阅读 · 0 评论 -
Source命令
Source命令source命令用法:source FileName作用:在当前bash环境下读取并执行FileName中的命令。注:该命令通常用命令“.”来替代。如:source .bash_rc 与 . .bash_rc 是等效的。注意:source命令与shell scripts的区别是,source在当前bash环境下执行命令,而scripts是启动一个子shell来转载 2016-08-23 13:35:11 · 600 阅读 · 0 评论 -
bash中的complete作用——TAB参数自动补全
阅读build/envsetup.sh文件时,发现了一句不太理解:complete -F _lunch lunch这里的意识是,当你在命令行输入lunch 然后按下见,会将_lunch函数的输出显示到终端上,友好的提示你lunch后可能的参数。参考:http://linux.about.com/library/cmd/blcmdl1_complete.h原创 2016-09-22 11:24:43 · 1965 阅读 · 0 评论 -
shell, subshell, pipes and exit
Shell中的管道以及exit,众所周知,shell中的exit是退出当前shell的意思,但是某日工作中遇到了下面这种情况,在管道中使用exit。GNU bash,版本 4.3.11user@PCxulu:~/debug/test$ cat test.sh#!/bin/bashcat test.txt | while read oldo echo $ol exitdone原创 2017-02-21 10:12:09 · 694 阅读 · 0 评论 -
shell command命令
近期遇到一个比较少见的命令command,详细如下:command 是一些shell的内建命令我本机使用的是dash,服务器使用的是bash,其他shell没有测试 - dashuser@PC:~/debug/bin/test$ ll /bin/shlrwxrwxrwx 1 root root 4 12月 8 2015 /bin/sh -> dash*user@PC:~/debug/bi原创 2017-06-08 10:55:09 · 17804 阅读 · 1 评论