MichelMunoz
MichelMunoz
Ok, I see ; in that case "pattern" is not to be used, for sure. As for terminology, it varies. For inspiration... Here's the java docs : ``` endsWith(String suffix)...
Updated titlte to better reflect the issue.
I'm not sure adding pattern support is necessary here (none of the languages I cited does) ; just correcting the doc should do. The non necessity is further suggested when...
Sure, I can try this week end (time permitting). What terminology "suffix" , "suffix string", ... ?
The result with 0.67 is: ``` COMMMAND: ^echo --arg1 "C:\Program Files (x86)\Realtek" -z@"C:\Program Files (x86)\Realtek" --arg1 "\"C:\Program Files (x86)\Realtek\"" "-z@\"C:\Program Files (x86)\Realtek\"" ``` which seems to work (at least if...
There is something wrong though, with the initial example, simplified : ``` let exe = "^echo" let somepath = "X" let command = $"($exe) \"($somepath)\"" echo $"COMMMAND: ($command)" nu -c...
Given my last comment, ie. what is the real problem with the current version, should I - rename the ticket to match the real problem - create another one with...
> Title suggestion: > Unexpected escaping of quotes when expanding variable to external command Ok, done (+ minor edit of first comment to redirect to the relevant comment).
Thank you for the answer, indeed this is a workaround, sorry for my delay in acknowledging it. I checked in the documentation (the book) and nowhere there seems to be...
Okay, I see your point (the `"$\"` one, the unnecessary extra quotes is wrong, i should have used `ls $"($x)"` my mistake, I am juggling between `nu -c "command"` style...