Stream: helpdesk (published)

Topic: ✔ Quotation marks in commands


view this post on Zulip mbaz (Jul 14 2022 at 13:58):

I think I was confused by Julia eliding the "s:

julia> `exiv2 -M"set Exif.Photo.UserComment My Photo3" image.jpg`
`exiv2 '-Mset Exif.Photo.UserComment My Photo3' image.jpg`

I assumed this would fail. So I tried this:

julia> run(`exiv2 -M\"set Exif.Photo.UserComment My Photo3\" image.jpg`)
-M option 1: Invalid command line:
exiv2: Error parsing -M option arguments
Usage: exiv2 [ options ] [ action ] file ...

Manipulate the Exif metadata of images.
ERROR: failed process: Process(`exiv2 '-M"set' Exif.Photo.UserComment My 'Photo3"' image.jpg`, ProcessExited(1)) [1]

and I think from here I went down a rabbit hole instead of just doing the simplest thing, running the original command :sweat_smile:

view this post on Zulip Sebastian Pfitzner (Jul 14 2022 at 13:59):

yeah, Cmd printing is very confusing

view this post on Zulip Sebastian Pfitzner (Jul 14 2022 at 13:59):

Julia tries to be too smart for its own good

view this post on Zulip Notification Bot (Jul 14 2022 at 13:59):

mbaz has marked this topic as resolved.


Last updated: Oct 02 2023 at 04:34 UTC