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

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

Open
agentydragon opened this issue Sep 2, 2024 · 0 comments
Open

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

agentydragon opened this issue Sep 2, 2024 · 0 comments

Comments

@agentydragon
Copy link

agentydragon commented Sep 2, 2024

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.

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

No branches or pull requests

1 participant