[{"data":1,"prerenderedAt":85},["ShallowReactive",2],{"/2025/10/18-aws-ssm-linux-shell-script-closing-paren-expected-error":3},{"id":4,"title":5,"body":6,"date":76,"description":59,"extension":77,"meta":78,"navigation":79,"path":80,"robots":81,"seo":82,"stem":83,"__hash__":84},"posts/2025/10/18 AWS-SSM-Linux-Shell-Script-closing-paren-expected-error.md","18 AWS SSM Linux Shell Script Closing Paren Expected Error",{"type":7,"value":8,"toc":74},"minimark",[9,18,25,28,31,47,60,66],[10,11,13],"post-title",{":date":12},"date",[14,15,17],"h1",{"id":16},"aws-ssm-linux-shell-script-closing-paren-expected-error","AWS SSM Linux Shell Script Closing Paren Expected Error",[19,20,21],"notes",{},[22,23,24],"p",{},"This is a repost from my old blog. First posted in 3/21/2019.",[26,27],"br",{},[22,29,30],{},"I ran my scripts through AWS SSM and received the \"closing paren expected\" error message. Quick check on my code, I was missing items in two different situations:",[32,33,34],"ol",{},[35,36,37,38,46],"li",{},"I was missing closing parentheses ",[39,40,45],"code",{"className":41},[42,43,44],"bg-gray-200","p-2","rounded","\\)",", so adding it solves the issue. My code was like:",[48,49,50],"code-block",{},[51,52,57],"pre",{"className":53,"code":55,"language":56},[54],"language-text","if [ \\( \u003Cexpr> ]; then \u003Cdo this>; fi\n","text",[39,58,55],{"__ignoreMap":59},"",[32,61,63],{"start":62},2,[35,64,65],{},"My closing parentheses was not prefixed by space, so adding a space fixed it. It was like:",[48,67,68],{},[51,69,72],{"className":70,"code":71,"language":56},[54],"if [ \\( \u003Cexpr>\\) ]; then \u003Cdo this>; fi\n",[39,73,71],{"__ignoreMap":59},{"title":59,"searchDepth":62,"depth":62,"links":75},[],"2025-09-01T00:00:00.000Z","md",{},true,"/2025/10/18-aws-ssm-linux-shell-script-closing-paren-expected-error",null,{"title":5,"description":59},"2025/10/18 AWS-SSM-Linux-Shell-Script-closing-paren-expected-error","F-hjjDdiY2RI0-PmoYTuFoKHBA_0dU9nflLK0MYwmwM",1785167452810]