1.5.0.1384a introduced a backward-incompatible change on command line option processing

Discussion related to "Everything" 1.5 Alpha.
Post Reply
CrendKing
Posts: 13
Joined: Sat Apr 24, 2021 2:49 am

1.5.0.1384a introduced a backward-incompatible change on command line option processing

Post by CrendKing »

Before 1.5.0.1384a, if I do

Code: Select all

Everything64.exe -path "C:\a b" -search "hello"
the prompt line will be

Code: Select all

"C:\a b" hello
Now, the prompt line will be simply

Code: Select all

hello
I guess the relevant change is the "improved handling of the preprocessor in the Command line."

Is there a way to achieve the same effect with the new behavior? I.e. be able to specify the quoted path, as well as arbitrary text at the end. I tried

Code: Select all

Everything64.exe -search* "C:\a b" hello
but the quotes are missing.
void
Developer
Posts: 17152
Joined: Fri Oct 16, 2009 11:31 pm

Re: 1.5.0.1384a introduced a backward-incompatible change on command line option processing

Post by void »

Thank you for the bug report CrendKing,

I will have a fix shortly..
bit
Posts: 42
Joined: Fri Feb 17, 2023 8:57 am

Re: 1.5.0.1384a introduced a backward-incompatible change on command line option processing

Post by bit »

I found it too,
#define xxx
(passed to the command line) are not worked on 1385a
void
Developer
Posts: 17152
Joined: Fri Oct 16, 2009 11:31 pm

Re: 1.5.0.1384a introduced a backward-incompatible change on command line option processing

Post by void »

Thank you for the issue report bit,

What was your exact #define command line?



I know #define:x=123 is currently broken and will be fixed.
There's also issues with #define:<x=123> which will be fixed too.

#[define:x=123#]: should work. But I don't recommend this style for the command line.

Please try the following syntax:

[define:x=123]
void
Developer
Posts: 17152
Joined: Fri Oct 16, 2009 11:31 pm

Re: 1.5.0.1384a introduced a backward-incompatible change on command line option processing

Post by void »

Everything 1.5.0.1386a fixes an issue with combining -path and -search at the same time.

Everything 1.5.0.1384a fixes an issue with -search* not treating the remaining search as literal.

#variable: should now work again with #function: preprocessor syntax.
CrendKing
Posts: 13
Joined: Sat Apr 24, 2021 2:49 am

Re: 1.5.0.1384a introduced a backward-incompatible change on command line option processing

Post by CrendKing »

Thanks. It is working now.
NotNull
Posts: 5517
Joined: Wed May 24, 2017 9:22 pm

Re: 1.5.0.1384a introduced a backward-incompatible change on command line option processing

Post by NotNull »

Quick tip:
there also exist a -define command line option. With that you can do something (nonsensical) like:

Code: Select all

Everything64.exe  -define key="value"   -search add-column:A   A:=[key:]
bit
Posts: 42
Joined: Fri Feb 17, 2023 8:57 am

Re: 1.5.0.1384a introduced a backward-incompatible change on command line option processing

Post by bit »

void wrote: Mon Dec 02, 2024 10:02 pm What was your exact #define command line?
posted some examples in an new post: viewtopic.php?t=15899
Post Reply