Replies: 1 comment
-
|
We're interested in a fix for these type of issues. We have to be aware that Also complicating this issue is that we'd like to build in support for coreutils/uutils which I've started a PR for already. They have their own way of working with this type of thing. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For any command(internal or external) treat unquoted parameter as glob pattern and expand it before eval. Then remove glob from signature ( or better would be wherever filepath is present, treat unquoted string as glob). bash and other shells also does the same thing, even for external commands nushell also does the same thing i assume.
By doing this we can eliminate issues like #9790 . Considering
rmcommand it has signature offilepathas positional arguments and during command eval,rminternally expands this, because of thisrm a[b]andrm "a[b]"both are treated as glob so it fails to remove filea[b]Above may be inaccurate(Its first time i went through sourcecode of nushell) or may be there are better solution for this problem. That being said I am happy to make these changes with some help
Beta Was this translation helpful? Give feedback.
All reactions