Shell Script陷阱和缺陷

| | Comments (0) | TrackBacks (0)
最近在读C陷阱与缺陷,正好有朋友问到了在写Shell Script时要注意哪些东东。总结一下:
  • 注意空格
    • 有空格:在条件语句(if while until)中注意方括号与判定语句之间有空格
    • 没有空格:在赋值语句(=)等号两边是没有空格格的
其他的想起来了再写吧。

0 TrackBacks

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

About this Entry

This page contains a single entry by Guixing published on March 7, 2008 3:19 PM.

Pseudocode伪代码,逻辑代码? was the previous entry in this blog.

补Moinmoin 小刀切切 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.