jdberry / tag

A command line tool to manipulate tags on Mac OS X files, and to query for files with those tags.
MIT License
1.47k stars 94 forks source link

Don't quite understand this statement #10

Closed RobLewis closed 9 years ago

RobLewis commented 9 years ago

Not sure exactly what you mean by this:

• Tagnames may include spaces, but the entire tag list must be provided as one parameter: "a multiword tag name".

Do you mean that if any tag in the list contains a space, the entire list must be enclosed in double quotes? Or do you mean that each tag that contains a space must be individually quoted?

It would be the difference between this: "tag1,tag2,tag3 with spaces,tag4" and this: tag1,tag2,"tag3 with spaces",tag4

Or do you mean something else? Please clarify, and thanks for making this software!

marcuserronius commented 9 years ago

Those two examples are both correct, and will behave identically. The quotes are actually to make whatever shell you are using interpret the whole thing as a single argument (just like you already do with filenames that contain spaces). Also valid would be to escape spaces with backslashes: tag1,tag2,tag3\ with\ spaces,tag4

jdberry commented 9 years ago

@marcuserronius's description is correct.