learnbyexample/Command-line-text-processing

ex13_regex_character_class_part2 mismatch for question 1

pourradass opened this issue ยท 2 comments

Submitting my solution for question 1 of ex13_regex_character_class_part2 results in the below:

Mismatch for question 1:
Expected output is:
a[2]
foo_bar
appx_pi
greeting
food[4]
b[0][1]

But it is the exact same output I'm getting. I've even tried with the solution from .ref_solutions, without any luck.

image

Using GNU bash, version 4.4.23(1)-release (x86_64-pc-msys)

Thanks a lot for reporting this issue ๐Ÿ‘
Also, thanks for such a detailed error report, makes it very easy for me.

This was a corner case issue when command output contained a glob character, hence why it wasn't caught by me during manual testing (I need to create automatic testing for this script I suppose, at least for all the questions and answers in this repo)

I have fixed the solve script, can you check if it is working now for you?

No worries and yes I can confirm the issue is now solved, thanks!