[rancid] Re: plus in the prompt?

David Luyer david+rancid at luyer.net
Tue Mar 11 15:57:18 UTC 2008

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


More information about the Rancid-discuss mailing list