Cloginvs dollar signs
Andrew Partan
asp at partan.com
Tue Dec 30 17:49:44 UTC 2003
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.
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.
--asp
More information about the Rancid-discuss
mailing list