- printf '%s\t%s\t%s\ttags=%s\t%s\t%s\n' \
- "$length" "$width" "$height" \
- "$(printf %s "$tags" |sort -u |tr '\n' ,)" \
- "$comment" "$fn" \
- >>"${meta}.lock/mtmp"
- mv "${meta}.lock/mtmp" "$meta"
+ tags="$(printf %s "$tags" |sort -u |tr '\n' ,)"
+ printf '%i\t%i\t%i\ttags=%s\t%s\t%s\n' \
+ "$length" "$width" "$height" \
+ "$(STRING "${tags#,}")" \
+ "$comment" "$fn" \
+ >>"${meta}.tmp"
+ mv "${meta}.tmp" "$meta"