I have an sh script and I'm trying to call a python program inside it through an environmental variable but it's returning an error
Script:
#!/system/bin/sh
MN_MOVI="--movie_template '<$title ><($year)><$extension>'"
mnamer test.mp4 "$MN_MOVI"
Error:
mnamer: error: unrecognized arguments: --movie_template '< ><()><>'
Code works fine with
mnamer test.mp4 --movie_template '<$title ><($year)><$extension>'
Edit --
tripleee linked the correct fix, setting MN_MOVI as an array fixed it
MN_MOVI=(--movie_template '<$title ><($year)><$extension>')
mnamer test.mp4 "${MN_MOVI[@]}"