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
Passing argument to application beginning with @
gives strange error
#717
Comments
Huh, that's annoying. I changed this from a custom implementation to the Edit: to be clear, this absolutely should not apply after Also, thanks for the detailed error reports! |
FWIW I didn't have any problem passing |
Got a fix up for it at the linked PR; you may want to test it works with your workflow. I'll release later today. |
Can confirm this solves my problem. Thanks! |
watchexec 1.24.0 on Linux
If I try to pass an argument to the application (after
--
) which starts with an@
sign, I get this error:It looks like this is due to a feature that expands argument lists from a file when prefixed with
@
. The problem can be solved by prefixing the@
with\\
. It would help to provide an explicit error message here explaining this, as it took me a while to understand what was going on.Even with a better error message, though, this feature feels a bit dangerous. In my case (using bazel), the string after such an
@
argument usually isn't a valid path, so I just get an error. But if I were using an application that did expect a path after@
, I might inadvertently cause watchexec to read the file and expand it with arbitrary effects. Maybe this feature should not apply after--
, or should be enabled by an explicit flag?Note that many shells have built-in functionality to achieve the same thing. For instance, in bash I can write
$(<filename)
.The text was updated successfully, but these errors were encountered: