To be even more specific, this works;
Code:
a="authors:John Doe"
calibredb set_metadata -f "$a" 10030
this does not:
Code:
a="-f authors:John Doe"
calibredb set_metadata "$a" 10030
but this does:
Code:
a="-fauthors:John Doe"
calibredb set_metadata "$a" 10030
Why does putting the -f flag inside a variable requires the removal of the subsequent space? Is it a bash issue or something specific to calibredb?
Thank in advance. W.