Is requiring to quote every path passed to the Path-List Function not unneeded?

Discussion related to "Everything" 1.5 Alpha.
Post Reply
Ralf_Reddings
Posts: 120
Joined: Fri Mar 24, 2023 4:53 pm

Is requiring to quote every path passed to the Path-List Function not unneeded?

Post by Ralf_Reddings »

Every path passed to the function
Path-List
needs to be quoted:

Code: Select all

path-list:"c:\temp\red"|"c:\temp\blue" 
path-list:<"c:\temp\red"|"c:\temp\blue">
path-list:"c:\temp\red"
The above will work, the following will not:

Code: Select all

path-list:c:\temp\red|c:\temp\blue
path-list:<c:\temp\red|c:\temp\blue>
path-list:c:\temp\red

I dont see why even path wrapped in "<", ">" and separated by "|", like so need to also be quoted as well:

Code: Select all

path-list:<c:\temp\red|c:\temp\blue>
Maybe there is a technical reason, if not I would appreciate if we can do have an option not to. I am on the latest beta version.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Is requiring to quote every path passed to the Path-List Function not unneeded?

Post by NotNull »

path-list: uses a semi-colon delimited list of paths instead of | :

Code: Select all

path-list:"c:\temp\red";"c:\temp\blue"
Quoting a path is optional when it does not contain a space:

Code: Select all

path-list:"c:\program files";c:\windows
Ralf_Reddings
Posts: 120
Joined: Fri Mar 24, 2023 4:53 pm

Re: Is requiring to quote every path passed to the Path-List Function not unneeded?

Post by Ralf_Reddings »

I could have sworn I was quoting the paths when I was trying this yesterday, maybe not.

Event then, thanks for the help. I was not aware of double quotes being optional in the cases of paths with no spaces.
Post Reply