Author Topic: '>' character treated as unix redirect in list tag  (Read 1280 times)

Tr

  • Jr. Member
  • **
  • Posts: 29
'>' character treated as unix redirect in list tag
« on: February 21, 2014, 05:18:25 PM »
Hello:

We are ingesting headers using -csv, modifying cell values, then writing the csv into the headers.  When a '>' character is added as content to an value in a ';' delimited list, it is treated as a unix file redirect and creates a bogus file on disk. 

For this list value below, a file called 'Dark' is created when we write the csv back into the image headers:

C.2.;X.Nebula > Dark

Note: string tag values does not have this issue.  It seems to only affect the list/array tags.

Thanks for any assistance.


Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 14405
    • ExifTool Home Page
Re: '>' character treated as unix redirect in list tag
« Reply #1 on: February 21, 2014, 07:48:15 PM »
This works for me:

Code: [Select]
> cat t1
SourceFile,Keywords
a.jpg,"a;b > c"

> exiftool a.jpg -csv=t1 -sep ";"
    1 image files updated

> exiftool a.jpg -keywords
Keywords                        : a, b > c

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Tr

  • Jr. Member
  • **
  • Posts: 29
Re: '>' character treated as unix redirect in list tag
« Reply #2 on: February 25, 2014, 03:37:12 PM »
sorry.  problem was user error on our end.