Skip to content

Error on filename with apostrophe #2

@ebassett

Description

@ebassett

Opening a file with an apostrophe (Captain's.log in this case) throws a (non-blocking) error on stderr:
/bin/bash: -c: line 0: unexpected EOF while looking for matching `''
(That message ends with: backtick, single-quote, single-quote.)

Please take a look at my proposed fix:
ebassett@7ba01d5
It fixed my problem, but I haven't given it broader testing (I'm open to suggestions); in particular, it's a bashism, as I understand it, so might cause more problems for someone with a different default shell.
I'll send a pull request now, regardless, and you can reject it if this is too iffy.
(And it is a non-blocking issue, anyway...)
Cheers,
-Edward

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions