I would like to get the same effect as vim "$p"
, but without using double quotes, where $p
is a path with special characters and spaces.
e.g. something a desirable DOUBLE_QUOTE
function: vim $(DOUBLE_QUOTE $p)
After lots of reasearch I tried:
vim $(echo ${p@Q})
...all with no success (I get quotes showing up in the path)
Background: The reason is the string is passed between a few window batch scrips, and programs, and I have spent the weekend trying to escape the double quotes through multiple layers with no success.