變數 (Variables) 及相關動作
 
   
  • 變數型態都是字串
  • 變數展開 (Variable substitution)
  • 變數展開之擴充
 
 
用於流程控制的語言元素 (Control Flow Primitives)
 
   
條件式執行 (Conditional Execution)
if-then-else
case
 
   
迴圈式執行 (Repetitive Execution)
for
while
until
 
   
無條件程式跳轉 (Unconditional transfer of control)
goto
break
continue
exit
 
 
函數 (Function)
 
   
  • 與一般傳統函數大同小異
  • 使用位置變數 (Position Variables: $1, $2, ... $9, $*) 傳遞函數之參數
Web Page Copyright: 亞洲大學資訊電機學院 連耀南 yaonanlien@asia.edu.tw  construct.htm,  Sun Dec 14 23:14:42 CST 2025