<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px;"><div style="font-family: Calibri, sans-serif;">I’ve come across a bit of an odd problem in clogin, I believe it shows up with prompts that are ten characters long, and the tenth character would need escaping if it were put in a regex.</div><div style="font-family: Calibri, sans-serif;"><br></div><div style="font-family: Calibri, sans-serif;">I modified clogin to show me what it was building for a prompt and this is what I saw:</div><div style="font-family: Calibri, sans-serif;"><br></div><div><div><font face="Courier">(ThisLong) #</font></div><div><font face="Courier">reprompt is \(ThisLong\([^#>\r\n]+)?[#>](\([^)\r\n]+\))?</font></div><div><font face="Courier"><br></font></div><div><font face="Courier">(ThisIsLonger) #</font></div><div><font face="Courier">reprompt is \(ThisIsLon([^#>\r\n]+)?[#>](\([^)\r\n]+\))?</font></div><div style="font-family: Calibri, sans-serif;"><br></div></div><div style="font-family: Calibri, sans-serif;">Notice on the shorter prompt, the parenthesis in the regex ends up being escaped, I suspect because the prompt is being escaped and then trimmed. The problem code is right near the top of run_commands().</div><div style="font-family: Calibri, sans-serif;"><br></div><div style="font-family: Calibri, sans-serif;">Mike</div><div style="font-family: Calibri, sans-serif;"><br></div></body></html>