最近在读C陷阱与缺陷,正好有朋友问到了在写Shell Script时要注意哪些东东。总结一下:
- 注意空格
- 有空格:在条件语句(if while until)中注意方括号与判定语句之间有空格
- 没有空格:在赋值语句(=)等号两边是没有空格格的
Listed below are links to blogs that reference this entry: Shell Script陷阱和缺陷.
TrackBack URL for this entry: http://blog.khsing.net/cgi-bin/mt-tb.cgi/11
Leave a comment