调试脚本时候出现Syntax error: "(" unexpected
发表于 : 2008-10-14 12:05
#!/bin/bash
function init() {
read -p "请输入帐号:" ide
read -p "请输入密码:" -s code
}
init
调试的时候用sh -n e.sh
终端中出现:e.sh: 2: Syntax error: "(" unexpected
请问怎么解决啊?
function init() {
read -p "请输入帐号:" ide
read -p "请输入密码:" -s code
}
init
调试的时候用sh -n e.sh
终端中出现:e.sh: 2: Syntax error: "(" unexpected
请问怎么解决啊?