[rancid] Re: plus in the prompt?
Andrew Brennan
andrew.brennan at drexel.edu
Wed Mar 12 15:34:27 UTC 2008
Isn't the hostname + domain name used in setting up a SSH key in IOS? You
could always sell it as "+" isn't a valid character in a FQDN, so you can
run into trouble later with some SSH clients having trouble connecting?
But, the code mod to support all possible characters in a hostname is more
likely the better way to go for cases like this.
andrew.
On Wed, 12 Mar 2008, Ed Ravin wrote:
> 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..."
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>
More information about the Rancid-discuss
mailing list