Handling of empty strings and strings with one space

Started by Archive, May 12, 2010, 08:54:45 AM

Previous topic - Next topic

Archive

[Originally posted by anvoit on 2010-02-15 15:42:41.220443-08]

Hi Phil,

I have another issue. You already explained that it's not possible to set an empty string for a tag on the command line. This is really a pity cause I cannot use the API with my program. Maybe it's an idea to use the syntax "=GROUP:TAG=" to set a tag to the empty string on the command line? It would be also possible to use "+" for this.

For the moment I need to live with this so I tried to set these tags to a string with just one blank. Doing this on the command line is OK, but as I use a argument file together with -@, this doesn't work. Even though there is a single space after the "=" sign in the argument file, the tag gets deleted.

Am I right that this is a bug?

Thanks,

Andreas

Archive

[Originally posted by exiftool on 2010-02-16 05:33:55.846353-08]

Hi Andreas,

Yes, the exiftool application trims leading and
trailing white space from arguments in the -@
file by design.  I did this because it is too easy to get
unintended spaces in tag values since the newline delimiter
is invisible in most text editors.

- Phil