Closed ashprice closed 1 year ago
OK, nevermind and sorry for the traffic - I realized --show-output
does what it says on the tin, and that none of the searches were running on anything, because I was borking the syntax for calling the variable in fish - $uuids was evaluating as an empty variable.
Glad you figured it out :+1:
Apologies if there is a better place to ask this; I am unsure yet if it is an bug or a question.
Consider the following sets of commands:
These work as expected. (Even if the quoting syntax is horrible.) But if I try to introduce either a capture group, a character group, or a string that will not be matched, I receive an error from hyperfine:
all give:
Using
--show-output
doesn't give me anything illuminating, sometimes it gives a lot of blank whitespace, but I can't reproduce it now.Normally, ripgrep would print output for each of the former commands, and fish would display the exit status for the failed match. I would understand it in the case of no match - this should present exist status 1 - but I am not sure what's going on with the cases that do have matches:
I've discovered that turning the shell of with -N leads to some benchmarking proceeding without error. However, it looks to me like it is just echoing the entire string (which makes sense, I guess):
I'd be grateful for any help on this, and please let me know if there's any other info I can provide.
(The actual commands I want to test will take somewhat longer than 5ms.)