Skip to content

not robust to shell meta-characters (e.g. space, ", $) in paths #27

@gvvaughan

Description

@gvvaughan

I'm trying to build luabuild on my Mac, which (due to multiboot) places my home directory at '/Volumes/Macintosh HD/Users/gary' (note the space)... causing it to fail when calling ar. I managed to get it working by naively adding single quotes to the rules in the lake source it comes with, but wanted to make a pull-request for something more robust...

But, internally, file lists are stored as space separated lists, and so only some global variable substitutions should check for metacharacters and self-quote on expansion. Along similar lines quote_if_necessary only checks for spaces, and not other active characters that can confuse the shell.

Also, I don't have (or want) access to Windows, so I have no idea on what the right approach would be so that a patch doesn't break things there.

How do you think I should proceed?

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