Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"--info" option and apostrophe in a directory name #77

Closed
Thom1 opened this issue Jan 12, 2012 · 2 comments
Closed

"--info" option and apostrophe in a directory name #77

Thom1 opened this issue Jan 12, 2012 · 2 comments
Assignees
Labels
bug

Comments

@Thom1
Copy link

@Thom1 Thom1 commented Jan 12, 2012

Hi,

When I use this command ( feh --draw-tinted --info "exiv2 -P kv '%f'" -r . ), no info is printed when a picture is in a directory with an apostrophe in the name. And I have this error message :
sh: -c: line 0: unexpected EOF while looking for matching `''
sh: -c: line 1: syntax error: unexpected end of file

@ghost ghost assigned derf Jan 14, 2012
@derf
Copy link
Owner

@derf derf commented Jan 14, 2012

Yeah, that's because feh doesn't escape the filename in %f, so you get exiv2 -P kv 'fooo'bar' -r, which will of course confuse your shell.

I guess I'll add an %F option containing an escaped filename.

@derf derf closed this in 310b607 Jan 15, 2012
@Thom1
Copy link
Author

@Thom1 Thom1 commented Jan 15, 2012

Thanks derf, it works !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.