<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jul 11, 2020 at 5:44 PM Mrinal Pandey <<a href="mailto:mrinalmni@gmail.com">mrinalmni@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The usage of "capture group (...)" in the immediate condition after `&&`<br>
results in `$1` being uninitialized. This eventually crashes the script.<br>
<br></blockquote><div><br></div><div>It does not really crash it, right? It just emits a warning.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Fix this by placing the capture group in the condition before `&&`.<br>
Thus, `$1` can be initialized to the text it matches thereby setting it<br>
to the desired and required value.<br>
<br></blockquote><div><br></div><div>Maybe you can look when this bug was introduced?</div><div><br></div><div>Lukas</div></div></div>