You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the actual values that will be inlined from interpolations are opaque, to get rid of possible misinterpretation of values that may contain spaces, the interpolations need to be quoted, e.g. await $"app '{path}'".
It would be super-cool if we can do the automatic quotation of interpolated expressions when such strings are the input to await or Shell.Run.
Concerns:
Interpolations which area already quoted
Interpolations which reside inside quotes, e.g. await $"app 'some {path} arg with spaces'"
Interpolations which reside between quotes, e.g. await $"app 'arg1' {path} 'arg2'"
How to determine if interpolation should be quoted for a particular invocation (e.g. call to Shell.Run)?
The text was updated successfully, but these errors were encountered:
Since the actual values that will be inlined from interpolations are opaque, to get rid of possible misinterpretation of values that may contain spaces, the interpolations need to be quoted, e.g.
await $"app '{path}'"
.It would be super-cool if we can do the automatic quotation of interpolated expressions when such strings are the input to
await
orShell.Run
.Concerns:
await $"app 'some {path} arg with spaces'"
await $"app 'arg1' {path} 'arg2'"
Shell.Run
)?The text was updated successfully, but these errors were encountered: