如何讓函數傳遞3個參數而不是4個?在腳本中引用參數不會幫助我。例如身體test.sh的腳本: func1(){
echo "Func1: Amount arguments: $#, Passed arguments: [email protected]";
for i in [email protected]; do
echo "ARG=$i";
done
我的腳本的目的是將消息發送到Mattermost服務器。 所以我用捲曲這樣做: #!/bin/bash
message="This is my message with potentially several quotes in it ..."
url=http://www.myMatterMostServer.com/hooks/myMattermostKey
payload="{ \"t