Cloginvs dollar signs

john heasley heas at shrubbery.net
Tue Dec 30 18:00:43 UTC 2003


Tue, Dec 30, 2003 at 12:49:44PM -0500, Andrew Partan:
> On Tue, Dec 30, 2003 at 11:13:26AM -0500, Gee-clough, Aaron (NIH/CIT) wrote:
> > First example, with just the \ escaping:
> > add user lab-*	te\$tpass
> > spawn ssh -c 3des -x -l {te$tpass} lab-test.nih.gov
> 
> > Second example, with no escaping, but with braces:
> > add user lab-*	{te$tpass}
> > spawn ssh -c 3des -x -l {te$tpass} lab-test.nih.gov
> 
> That is very odd - even w/o the {} in the 1st example, expect is
> adding the {} anyhow.

it appears to be added/preserved by tcl in the add procedure.  I've
tried many incantations....  It ignores the escape and adds the braces
to delay the expansion of what it thinks is a variable?

> I tried changing the 'spawn ssh' in clogin from:
> 	    if [ catch {spawn ssh -c $cyphertype -x -l $user $router} reason ] {
> to:
> 	    if [ catch {spawn ssh -c $cyphertype -x -l "$user" $router} reason ] {
> but that didn't make any difference.
> 
> Grr, I don't like expect.

double that for me.



More information about the Rancid-discuss mailing list