Bash syntax writing to XML files with CLI. Error «Defaults: Unexpected argument notification»
Hello,
I want to create a property list file by supplying an XML-type nested argument. It fails with the error "Defaults: Unexpected argument notification" you see in the subject.
bash shell
My command is
defaults write org.SmartSolutions.DummyDomain.plist \ '<dict>
> <key>Label</key>
> <string>org.SmartSolutions.DummyDomain</string>
> <key>ProgramArguments</key>
> <array>
> <string>/bin/sh</string>
> <string>-c</string>
> <string>/usr/bin/osascript -e 'delay 5' && /usr/bin/osascript -e 'display notification "Started Squid" '</string>
</array>
> <key>RunAtLoad</key>
</true>
> <key>StandardErrorPath</key>
> <string>/Users/home_redacted/Documents/My Launch Agents Logs/org.SmartSolutions.DummyDomain-err.log</string>
> <key>StandardOutPath</key>
> <string>/Users/home_redacted/Documents/My Launch Agents Logs/org.SmartSolutions.DummyDomain-out.log</string>
> </dict>'
Where's my mistake? What argument was "unexpected"?