这是indexloc提供的服务,不要输入任何密码
Skip to content

mkrc: eval: Syntax error: "(" unexpected on filenames with ( #304

@agentydragon

Description

@agentydragon

I'm trying to commit into rcm some files from OrcaSlicer config which contain ( in the filename. I'm getting "/usr/bin/rcup: 1: eval: Syntax error: "(" unexpected runningmkrc *` from the directory.

I think it happens because the dests_and_srcs="$(eval "lsrc $LS_ARGS")" does not properly escape the braces. Shell tries to execute eval my(filename)test and that would trigger spawning a sub-shell to execute filename. Seems like an escaping problem but I'm not sure what's the right way to fix it.

For my use-case I'm luckily able to work around by making the filename not have ('s.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions