[rancid] Re: plus in the prompt?

Ed Ravin eravin at panix.com
Wed Mar 12 15:27:06 UTC 2008

On Tue, Mar 11, 2008 at 08:57:18AM -0700, David Luyer wrote:
> If you really need such characters in your prompt, this:
> >         # escape any parens in the prompt, such as "(enable)"
> >         regsub -all {[)(]} $prompt {\\&} reprompt
> could be changed to something more like:
>          # escape all regexp magic characters in the prompt
>          regsub -all {[+*.|(){}[\]]} $prompt {\\&} reprompt

Thank you, that works.  It's the customer's router and it didn't
seem right to say "I need to change your router hostname, because,
well, ummm..."

More information about the Rancid-discuss mailing list